Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts Tiles Issue  RSS feed

Pooja Salaria
Posts: 3
  • Mark post as helpful
  • send pies
  • 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" %>

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

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" />

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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!