Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 Tiles: Using actions instead of JSP's

 
Payam Fard
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

When I am defining a tiles template, can I use actions in place of JSP's? In other words, I want to be able to do something like the following to be able to populate the jsp page with some data from the back end. If this is doable, can someone point me to an example or documentation on how to do this?

<tiles-definitions>
<definition name="baseLayout" template="/BaseLayout.jsp">
<put-attribute name="title" value="" />

<put-attribute name="otherInfo" value="/test.jsp" />
<put-attribute name="myInfo" value="/myAction" />
</definition>
</tiles-definitions>

Thanks much,
Payam
 
Payam Fard
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am very sorry for the repost, but does anyone know how this can be done or can point me to a code example?

Thanks,
Payam
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic