• Post Reply Bookmark Topic Watch Topic
  • New Topic

can this variable be accessed in various JSPs assemebled in tile.xml ?  RSS feed

ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP page, in the JSP, it has a

<s:url action="myaction">
<s;parameter name="index" value=...>...


link that points to an "myaction". In struts.xml file there is a mapping for it

<action name="myaction" class="....">
<result name="success" type="tiles">mytile</result>

it output goes to "mytile" defined in tiles.xml:

<definition name="mytile" template=".."
><put-attribute name='header" value="header.jsp"/>
<put-attribute name="body" value="index.jsp"/>
<put-attribute name="footer" value="footer.jsp"/>

Question is -- when I click the <s;url> link, it directs to 'mytile' whihc is composed of a few JSP pages. Is the paramer 'index" I set in the ><s:url> accessible by ALL of the JSPs defined in the tiles.xml's 'mytile' section ? It seems it should but I had problem getting it, is there anything fundamentally wrong in my concept ?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!