• 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

overwriting tile attribute value

 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks,
In my tile definition file I put an attribute with its value, in the jsp that uses this definition I attempted to put the same attribute in with another value. However , the default value always shows up at the end. Is there a way that I can provide a default value for a tile attribute but also overwriting it in different jsps?
thanks

tiles-def file:
<definition name="common.default" path="/layout/defaultLayout.jsp" >

<put name="param1" value="default"/>
</definition>

the jsp file that uses the tile definition:
<tiles:insert definition="common.default">

<tiles:put name="param1" value="try to overwrite"/>

</tiles:insert>

defaultLayout.jsp: (only showing the relevant part)
<tiles:getAsString name="param1"/>
reply
    Bookmark Topic Watch Topic
  • New Topic