Struts / tiles ignore tag in tiles:insert not working

R

Rich M

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Tiles 1
Struts Tiles Error 0
extends tiles in struts 0
Tiles insert with jspf components 0
Struts Tiles Error.Please Help 1
Problem with Tiles/Struts on WSAD 5 1
Struts - Tiles Question 4
Struts Tiles 1

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top