• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Definition Using A definition

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
Using struts 1.2 and tomcat 4.x

I'm trying to reuse a definition in another definition in tiles-def.xml. Below is the similar code of whatI'm trying to do.

xLayout.jsp has two insert tages body1 and body2.
<tiles:insert attribute="body1"/>
<tiles:insert attribute="body2"/>

commonLayout.jsp has 'nav' and 'body' as insert tages.
<tiles:insert attribute="nav"/>
<tiles:insert attribute="body"/>

***
tiles-def.xml

<definition name="bodyXDef" path="/xLayout.jsp">
<put name="body1" value="/content1.jsp"/>
<put name="body2" value="/content2.jsp"/>
</definition>

<definition name="bodyX_navDef" path="/commonLayout.jsp">
<put name="nav" value="/xNav.jsp"/>
<put name="body" value="bodyXDef"/>
</definition>
****

I'm getting an error message "org.apache.jasper.JasperException: Path customerSummaryDef does not start with a "/" character",
and I'm getting a blank page if I use '/' (<put name="body" value="/bodyXDef"/> before the definition.

Can I use definition in a definition (not extends) as in the example above? If so can any help me if any thing is wrong in doing this?

Thank you...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic