• 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

Struts Tiles Issue

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a tiles page header.jsp.
I want to pass some parameter to this page using tiles-defs.xml.

my header .jsp

<%@taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
<html>

<body>
<span class="style10"><tiles:getAsString name="headervalue" /></span>
</body>
</html>


in my tiles-defs.xml,
I have created entry like this -
<definition name="setUpLayout" path="/WEB-INF/atlas/layout/SetUpLayout.jsp">
<put name="title" value="" />
<put name="header" value="/WEB-INF/atlas/tiles/setup/header.jsp" />
<put name="menu" value="../tiles/setup/setupMenu.jsp" />
<put name="body" value="../tiles/setup/setupLanguages.jsp" />
<put name="headervalue" value="My Setup" type="string" />
</definition>

here i have defined "headervalue". I am able to use this headervalue in my setuplayout.jsp. but not in my header.jsp.
Probably what i have defined in tiles-defs.xml is not correct.
Please tell me the right way.
 
reply
    Bookmark Topic Watch Topic
  • New Topic