Avoid tag library declarations when using Tiles

Hello,
Im developing a small app using Struts+Tiles, I see that in every "Tile" (header.jsp, navbar.jsp, footer.jsp) if I want to use some struts tags like <bean:write... I have to put the tag library declarations like:
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>at the begining of every jsp, because the tag library declarations included at the begining of the "mainLayout" that encapsulates the page regions or "tiles", is ignored.
How to solve this ?

Refer
http://www.oracle.com/technology/pub/articles/vohra_tiles.html

Similar Messages

  • Omit the XML declaration when using the PHP MM_XSLTransform class

    Hi
    Is there any way to omit the XML declaration when using the
    PHP MM_XSLTransform class?
    When using the PHP MM_XSLTransform to transform some XML into
    HTML, the XML declaration is faithfully delivered, which is
    expected. In my case though this ends up in the body of the
    document and is not desired. I wish to choose that the XML
    declaration is not shown.
    I have tried to use the <xsl:output method="xml"
    encoding="utf-8" omit-xml-declaration="yes"/> in the XSL
    stylesheet but the declaration still appears.
    Any help?
    all the best
    Dave

    Jim20005 wrote:
    > I'm using XLS transfomation in DW for reading XML files.
    Now (I'm just back
    > form holiday), my webspace provider has updated to php
    5.1.5. I'm getting this
    > error:
    Comment out line 301 and add two new lines immediately after
    it like this:
    // $xml = DOMDocument::loadXML($content);
    $doc = new DOMDocument();
    $err = $doc->loadXML($content);
    This is part of a PHP 8.0.2 hotfix that can be obtained
    directly from
    Adobe support.
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Navigation problem when using tiles with JSF

    Hi all,
    I m using tiles with JSF. i have included all the libraries and jsp page is rendered properly. but when i use <h:commandLink> in the body part of the JSP , i cannot go to the specified link. when we use tiles, what changes need to be done in faces-config file?? i mean what navigation rule we need to specify ??

    Hello, I have the same problem; JSF+Tiles = No navigation.
    One basic question is should I reference the parent jsp or the included body jsp in the faces-config.xml file.
    For example: The login.jsp is a main tiles page that includes a menu.jsp, header.jsp & a loginBody.jsp.
    Hence the faces-config could have this rule;
    <navigation-rule>
    <from-view-id>/login.jsp</from-view-id>
    <navigation-case>
    <to-view-id>/catalog.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    (I've left the outcome tag out to simplify this post)
    Or, I could refer loginBody.jsp in the navigation rule;
    <navigation-rule>
    <from-view-id>/loginBody.jsp</from-view-id>
    <navigation-case>
    <to-view-id>/catalog.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    The loginBody.jsp has a commandbutton which a user clicks which starts the navigation.
    Neither seems to work unfortunately & I'm a stuck.
    Thanks

  • Avoid Database Login prompt when using CrystalReportViewer

    Is there a way to keep the Database Login prompt from coming up when using Crystal Reports runtime 2008 SP2? I'm using that plus Visual Studio 2008 to develop a Windows Form application to view reports on a client machine that accesses data on a seperate SQL Server 2005 machine. My customer would like to avoid having users manually enter anything everytime a report is opened with the Crystal Reports viewer.
    I've used the following code with ODBC and OLE DB report connections. When I use ODBC, the prompt comes up with Integrated Security checked which must be cleared. When I use OLE DB, the prompt comes up with Database Name blank and greyed out so I cannot manually enter it.
    Am I missing something here?
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Windows.Forms
    Public Class Form1
        Private Sub setDatabaseLogon(ByVal myConnectionInfo As ConnectionInfo)
            Dim logOnInfos As TableLogOnInfos = CrystalReportViewer1.LogOnInfo
            For Each logOnInfo As TableLogOnInfo In logOnInfos
                logOnInfo.ConnectionInfo = myConnectionInfo
            Nex
        End Sub
        Private Sub ConfigureCrystalReports()
            Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
            setDatabaseLogon(myConnectionInfo)
            myConnectionInfo.DatabaseName = "ClearView"
            myConnectionInfo.UserID = "reports"
            myConnectionInfo.Password = "dstreports"
            myConnectionInfo.IntegratedSecurity = False
        End Sub
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            ConfigureCrystalReports()
        End Sub
    End Class

    Thanks Jonathan for the tip. I tried it before and after the setDatabaseLogin call yesterday, but got the same results. I'm still going to follow your suggestion because that makes more sense.
    Turns out it was the configuration of my ODBC/System DSN that was causing the problem. I reconfigured the System DSN by clearing the check box to provide username/password and now I don't get the Database Login anymore.
    I found a different blog post that answered the OLE DB issue I was seeing where the DatabaseName was coming up blank:
    Login Error Database at Runtime
    Haven't tried it yet and probably won't because I got the Viewer to work with ODBC the way I like it.
    Thanks for the help!

  • HTML tags not displayed when using Data Template

    Hi All...
    I'm developing a BI Publisher report in which one of the columns is a clob data type. I'm using an xsl stylesheet to format the data present in the clob column.
    I've developed the report using data template as the data set. The problem is the clob column which has the HTML tags where not displayed properly...for example
    the tag starting with
    <
    is replaced with
    & lt;
    I did a couple of searches in this forum and in tim's blog but couldn't find a proper solution...
    http://blogs.oracle.com/xmlpublisher/2007/01/formatting_html_with_templates.html
    API and HTML Formated Content
    Re: Problem with text data elements containing escaped HTML codes
    HTML Output from CDATA
    Re: HTML formatted output
    Re: Special characters in CLOB are making report fail
    Re: Formatting of HTML tag problem
    I'm using BI Publisher standalone:Release 10.1.3.2. In one of the threads..
    Re: Special characters in CLOB are making report fail
    I came to know that data template cannot generate proper HTML tags for release 10.1.3.2. Is there any work around way to get the proper HTML tags when data template is used as a data set?
    Thanks in Advance...
    Edited by: user10280715 on Dec 9, 2008 3:13 PM

    Issue could be with the data that is selected in the other environment. It generally happens that the ALV will not give the same results as in the DEV in the other systems.
    Possible errors could be the control break statements in the loop...endloop block. validate the correctness of the control break stmts if any.

  • Error when using Tiles Tag Library

    Hello,
    I have the following page:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-template"
               prefix="template"%>
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%>
    <html:html>
    <tiles:insert page="/layouts/frameset.jsp" flush="true">
    <tiles:put name="headerl" value="/tiles/headers/DatePersonalHeader.jsp"/>
    <!-- <tiles:put name="left" value=""/> -->
    <tiles:put name="body" value="/tiles/bodys/PersonalBody.jsp"/>
    <tiles:put name="footer1" value="/tiles/footers/FooterGlobal.jsp"/>
    </tiles:insert>
    </html:html>When i run the page i get the following error :
    [ServletException in:/layouts/frameset.jsp] Error - Tag Insert : No value found for attribute 'footer1'.' In JDeveloper page="/layouts/frameset.jsp" is underlined for warning and the warning says : Attribute page not defined on element tiles:insert
    What is the problem ? thanks in advance !

    Refer
    http://www.oracle.com/technology/pub/articles/vohra_tiles.html

  • Libsslport library conflict when using components built with studio 11 & 12

    I have a library built with Studio 11 that links with libstlport.so in studio 11. I then build an application with studio 12 which links with studio 12 stilport.so. When I do an ldd on the application it reports that it depends on stlport.so from both studio 11 and 12. This happens even if I set LD_LIBRARY_PATH to explicitly point to the Studio 12 lib directory.
    On running the application it consistently crashes at exit with the following stack trace:
    std::locale::~locale()
    _exit()
    exit()
    The problem is resolved if we build everything with Studio 11.
    It should be possible to link with components build with older version of the compiler. Can someone tell us what is the right way to do this.
    Thanks.
    Shirish.

    Setting LD_LIBRARY_PATH is useful for testing and for one-off programs used only by yourself, but it is not a sustainable or scalable solution. For more on this topic:
    http://blogs.sun.com/rie/entry/tt_ld_library_path_tt
    When you build applications using shared libraries, you usually need to set the runpath (-R option).
    By default, the CC command sets the runpath to point into the compiler installation area. If parts of the application are build with different compilers, you can by deafult wind up with runpaths pointing into each compiler area, which can lead to linking two versions of a library, a recipe for disaster.
    The best way to solve this problem depends on how you will use and deploy the application. I'll suggest a general solution, which works even if you deploy the application to remote systems used by others.
    Create a runtime environment for the application, perhaps a directory tree like this:
    myapp/
        bin/
        lib/
        doc/Main programs go in the bin directory. Shared libraries go in the lib directory.
    Build shared libraries and executable programs with a relative runpath pointing into the lib directory:
    CC ... -R \$ORIGIN/../libIf you build an application entirely with Studio 11, copy the studio 11 version of libstlport.so into the lib directory.
    If multiple compilers are used, copy libstlport.so from the most recent compiler into the lib directory.

  • How do you avoid Connection Time Out when using Migration Assistant

    Connection Time Out occurred when trying to use Migration Assistant to Transfer filess from a Windows Computer to a new iMac.  What do I do to avoid this?
    I've connected the Windows computer to the iMac using an ethernet cable and both computers are on the same network.  When I started the transfer, it said it was copying the first file on both machines but nothing was happening.  Then finally it said there was a Connection Time out.  Is there anything else I need to check?

    I suspect it has something to do with your network settings on your PC. I'd recommend calling AppleCare right away. you have 90 days of free AppleCare telelphone support, they can help walk you through the process. Also if you haven't already i'd strongly recommend Pondini's guide to using Migration Assistant. You can locate it by clicking:
    http://www.pondini.org/OSX/Setup.html

  • How to avoid full Table scan when using Rule based optimizer (Oracle817)

    1. We have a Oracle 8.1.7 DB, and the optimizer_mode is set to "RULE"
    2. There are three indexes on table cm_contract_supply, which is a large table having 28732830 Rows, and average row length 149 Bytes
    COLUMN_NAME INDEX_NAME
    PROGRESS_RECID XAK11CM_CONTRACT_SUPPLY
    COMPANY_CODE XIE1CM_CONTRACT_SUPPLY
    CONTRACT_NUMBER XIE1CM_CONTRACT_SUPPLY
    COUNTRY_CODE XIE1CM_CONTRACT_SUPPLY
    SUPPLY_TYPE_CODE XIE1CM_CONTRACT_SUPPLY
    VERSION_NUMBER XIE1CM_CONTRACT_SUPPLY
    CAMPAIGN_CODE XIF1290CM_CONTRACT_SUPPLY
    COMPANY_CODE XIF1290CM_CONTRACT_SUPPLY
    COUNTRY_CODE XIF1290CM_CONTRACT_SUPPLY
    SUPPLIER_BP_ID XIF801CONTRACT_SUPPLY
    COMMISSION_LETTER_CODE XIF803CONTRACT_SUPPLY
    COMPANY_CODE XIF803CONTRACT_SUPPLY
    COUNTRY_CODE XIF803CONTRACT_SUPPLY
    COMPANY_CODE XPKCM_CONTRACT_SUPPLY
    CONTRACT_NUMBER XPKCM_CONTRACT_SUPPLY
    COUNTRY_CODE XPKCM_CONTRACT_SUPPLY
    SUPPLY_SEQUENCE_NUMBER XPKCM_CONTRACT_SUPPLY
    VERSION_NUMBER XPKCM_CONTRACT_SUPPLY
    3. We are querying the table for a particular contract_number and version_number. We want to avoid full table scan.
    SELECT /*+ INDEX(XAK11CM_CONTRACT_SUPPLY) */
    rowid, pms.cm_contract_supply.*
    FROM pms.cm_contract_supply
    WHERE
    contract_number = '0000000000131710'
    AND version_number = 3;
    However despite of giving hint, query results are fetched after full table scan.
    Execution Plan
    0 SELECT STATEMENT Optimizer=RULE (Cost=1182 Card=1 Bytes=742)
    1 0 TABLE ACCESS (FULL) OF 'CM_CONTRACT_SUPPLY' (Cost=1182 Card=1 Bytes=742)
    4. I have tried giving
    SELECT /*+ FIRST_ROWS + INDEX(XAK11CM_CONTRACT_SUPPLY) */
    rowid, pms.cm_contract_supply.*
    FROM pms.cm_contract_supply
    WHERE
    contract_number = '0000000000131710'
    AND version_number = 3;
    and
    SELECT /*+ CHOOSE + INDEX(XAK11CM_CONTRACT_SUPPLY) */
    rowid, pms.cm_contract_supply.*
    FROM pms.cm_contract_supply
    WHERE
    contract_number = '0000000000131710'
    AND version_number = 3;
    But it does not work.
    Is there some way without changing optimizer mode and without creating an additional index, we can use the index instead of full table scan?

    David,
    Here is my test on a Oracle 10g database.
    SQL> create table mytable as select * from all_tables;
    Table created.
    SQL> set autot traceonly
    SQL> alter session set optimizer_mode = choose;
    Session altered.
    SQL> select count(*) from mytable;
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE
       1    0   SORT (AGGREGATE)
       2    1     TABLE ACCESS (FULL) OF 'MYTABLE' (TABLE)
    Statistics
              1  recursive calls
              0  db block gets
             29  consistent gets
              0  physical reads
              0  redo size
            223  bytes sent via SQL*Net to client
            276  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processed
    SQL> analyze table mytable compute statistics;
    Table analyzed.
    SQL>  select count(*) from mytable
      2  ;
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=11 Card=1)
       1    0   SORT (AGGREGATE)
       2    1     TABLE ACCESS (FULL) OF 'MYTABLE' (TABLE) (Cost=11 Card=1
              788)
    Statistics
              1  recursive calls
              0  db block gets
             29  consistent gets
              0  physical reads
              0  redo size
            222  bytes sent via SQL*Net to client
            276  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processed
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining options

  • Swatches saved to library changing when used in another file. Any idea why?

    Hello,
    I have saved a couple of swatches by applying the colors to squares, then saving them to the library and afterwards loading them in another file. One of the squares changes color when imported onto stage. In the library preview it looks ok.
    Any idea why and how to solve this?
    Marko

    Hi Parth,
    I saw the option in the maintenance screen of the datasource "Delivery of Duplicate Data Recs"; it was set to Undefined but following your guide, I changed it to "Allowed" and activated the datasource.
    Remember the problem was not with the datasource, I was able to execute the infopackage to get the data in the PSA. It is when I try to take it from the PSA to the DSO with the DTP that is where I get the error.
    Does't is mean that everything is ok with the datasource?
    Any way, after changing to "Allowed", I deleted the load in the PSA and reloaded.
    The data now looks good in PSA as before.
    Now, a load to the DSO, by executing the DTP gives same error message.
    Any more hints?

  • Dreamweaver CC 2014.1: Auto uppercase on " nobr " closeing tag showing " /NOBR " when using tag wrap shortcut.

    Using the tag wrap shortcut (Command/Ctrl + T) works well. But, I've had to use <nobr> to wrap non-breaking text. This is useful for working on HTML emails and this always leaves the with uppercase letters in the ending tag like this, "</NOBR>".
    I understand that the <nobr> tag is outdated but Email HTML usually forces us to write code like this frequently.
    Any ideas why?
    I'm using Adobe Dreamweaver CC 2014.1

    It's curious. But I often do HTML emails and have never had (or felt the need) to use this antique tag. Can you substitute CSS's white-space:nowrap instead? Anyhow, why do you object to the uppercase closing tag? Esthetics?

  • How do I avoid getting this error when using an OpenVPN?

    I did a little research online and noticed that people got this same (or a very very similar) error in iOS on Safari when browsing with a proxy and they just had to reset network connections.
    I'm getting it in OS X. When I turn on the VPN sometimes browsing will work fine, but then this pops up and once I get this error in one tab I get it in all of them. Firefox still works. There's plenty of memory -- RAM and ROM.
    When I turn off the VPN it works again.

    Thanks Carolyn!
    I don't think this is the solution for me, although I do think it is a clue. It can't be a mistyped proxy field, as this happens across different VPN's (i.e. work, personal, school) and browsing is working fine for a time before it starts all the sudden giving me that message.
    I am on 10.8 which I didn't think was related, but now I'm starting to think maybe it is, so I'll also post in the Dev community. However if you or anyone has any ideas PLEASE do follow up, as I find the user support community to be far, far more useful than the Dev community in general!

  • Remove xml declarations when using xslt

    Hi, i have created an xslt which transforms an xml file and then imports the information into a mysql database. It works and imports the information into the database but it also brings across the xml delcarations and the node names.
    Is there a coldfusion way to remove these declarations, all i want is the information itself brought into the database.
    Thanks
    Chris

    Hi Adam,
    here is the code from the xsl file:
    <?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="data/itemfeed.xml" --><!DOCTYPE xsl:stylesheet  [
        <!ENTITY nbsp  "&#160;">
        <!ENTITY copy  "&#169;">
        <!ENTITY reg    "&#174;">
        <!ENTITY trade  "&#8482;">
        <!ENTITY mdash  "&#8212;">
        <!ENTITY ldquo  "&#8220;">
        <!ENTITY rdquo  "&#8221;">
        <!ENTITY pound  "&#163;">
        <!ENTITY yen    "&#165;">
        <!ENTITY euro  "&#8364;">
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output omit-xml-declaration="yes" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
    <xsl:template match="/">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    </head>
    <body>
    <xsl:for-each select="Items/Item[ItemType='Standard']">
    <xsl:value-of select="EANNumber"/>
    </xsl:for-each>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    And here is some sample data from the XML file:
    <?xml version="1.0" encoding="UTF-8" ?>
    <Items>
        <Item>
            <ItemType>Standard</ItemType>
            <EANNumber>111222333444</EANNumber>
        </Item>
    </Items>
    Thanks alot, i appreciate the help.
    Chris

  • How do I avoid breaking the law when using a MBP?

    My MBP won't let me set the correct wifi country code so that I can comply with local regulations (instead it allows the incorrect code to be set by other peoples routers).
    I don't want to interfere with military or emergency services frequencies and therefore need to find a way to set the code correctly.
    Can anyone help?
    thanks

    Hope the info from this thread helps.
    https://discussions.apple.com/message/15846632#15846632
    Best.

  • Paging using page tag Library

    My JSP is using page tag Library. When I click the Next page it returns next page. How can I change my JSP using page tag so that when the next/previous link is clicked, I should see the next/previous 10 records and so on.
    Thanks in advance

    Unfortunately my mind reading powers are not working so well right now.
    Which page tag library are you using? There are several.
    I would suggest that you look at the documentation for that library.
    Unless you show us what the code you are currently using is, we can't suggest changes.
    Oh, and please don't just copy paste your whole JSP here. A relevant excerpt of how you are using the tag library and how you create the links should be more than enough. And please use code tags.

Maybe you are looking for

  • How do I find my air play code for my Apple TV to connect to my I pad

    I have my Apple TV connected to TV it's working but when I try to mirror my what is in my ipad it is asking for a code how do I get this

  • Material creation date

    Hi, Can you please tell me which table or report give me the date the material is created for a plant? Thanks Srini

  • How to mask and unmask screen fields?

    Hi,     I have a PNP LDB selection screen. Also I have an extra Key Date field at bottom ( apart from the std period selection ) , which is defined by me.If i enter some value in a particular field say, Action Type, I need to make my Key Date field a

  • Subcontarcting: vendor batch field for By-products

    Hi, In subcontracting scenario, we recieve by-products (defined in PO) via Mvt 545 when MIGO is done. For these by-products , under Batch Tab ( in MIGO) there is vendor batch field which is greyed-out. Any idea on how to make this vendor batch field

  • How to create new Database With existing Backup

    hi all my Scenario is i have full backup of my database(11g r2 64) i formatted my system and reinstall h3. Windows 7 ultimate 64 how to create the same Database as it was earliar? i have h3. Oracle 11g r2 same as backedUp 64 h3. Full Backup Through e