Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Struts / tiles ignore tag in tiles:insert not working

Thread Tools

Struts / tiles ignore tag in tiles:insert not working

Rich M
Posts: n/a

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 name="body.AdvResultsOverTime"
path="/struts/body/Body3Col.jsp" extends="AdvResultsOverTime" >
<put name="col2Comp1" value="AdvResultsOverTime_Col2Comp1.jsp" />

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

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

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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
struts - tiles definition not reflecting for a JSP priya@tcs Java 0 12-19-2011 07:37 AM
struts - tiles definition not reflecting for a JSP priya@tcs Software 0 12-19-2011 07:26 AM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
struts / tiles put not visible inside tile Rob D Java 1 08-30-2004 04:26 PM
Struts Tiles Sean Chou Java 1 07-10-2003 11:46 PM