Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to have dynamic values in tiles.xml in Struts2

 
Anil Verghese
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is it possible to pass dynamic values in tiles.xml as we do in struts.xml in Struts2? I have used ${parameter} to get dynamic values in config file but it doesnt seem to work. Any ideas?

Thanks
Anil
 
Niiraj Patel
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anil,
Can you tell how do you set dynamic value in config file by providing code.

So, other can understand your point.

-Niraj
 
Anil Verghese
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have set the parameter value using getter/setter in the interceptor and then in the tiles I used the following

<definition name="online.template" template="brand.jsp">
<put-attribute name="header" value="${id}/header.ftl"/>

Each client has different header files so I want to provide the id to direct to the right header. Is this possible or is there another way around?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic