Struts / tiles ignore tag in tiles:insert not working

Discussion in 'Java' started by Rich M, Mar 5, 2004.

  1. Rich M

    Rich M Guest

    Hi,

    The ignore attribute in a tiles:insert tag is resulting in an error
    that does not prevent the page from rendering properly but I'd like to
    get rid of the error message so the admins stay happy.

    Tile definition (partial)
    ==================================================
    definition name="AdvResultsOverTime" path="/struts/page/AdvMain.jsp" >
    <put name="section" value="3" />
    <put name="titleTxt" value="Results over time" />
    <put name="body" value="body.AdvResultsOverTime" />
    </definition>

    <definition name="body.AdvResultsOverTime"
    path="/struts/body/Body3Col.jsp" extends="AdvResultsOverTime" >
    <put name="col2Comp1" value="AdvResultsOverTime_Col2Comp1.jsp" />
    </definition>

    JSP (partial)
    ==================================================
    <td id="pad_T14_R10_L20" valign="top">
    <tiles:insert name="col2Comp1" ignore="true" />
    <tiles:insert name="col2Comp2" ignore="true" />
    </td>

    The error
    ==================================================
    <Mar 5, 2004 10:19:25 AM PST> <Error> <HTTP> <101214> <Included
    resource or file
    "/struts/body/col2Comp2" not found from requested resource
    "AdvMain.jsp".>


    I'd like to reuse the jsp for definitions that have a col2Comp2 and
    those that don't. Seems like that is the purpose of ignore. Any help
    would be great.

    Thanks,
    Rich
     
    Rich M, Mar 5, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rob D
    Replies:
    1
    Views:
    747
    Brock Heinz
    Aug 30, 2004
  2. Stephan Melchior
    Replies:
    3
    Views:
    3,117
  3. shruds
    Replies:
    1
    Views:
    840
    John C. Bollinger
    Jan 27, 2006
  4. Rob Meade
    Replies:
    6
    Views:
    270
    Rob Meade
    Mar 1, 2004
  5. priya@tcs
    Replies:
    0
    Views:
    472
    priya@tcs
    Dec 19, 2011
Loading...

Share This Page