aspose file tools*
The moose likes Struts and the fly likes Struts 2 Tiles: Using actions instead of JSP's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 Tiles: Using actions instead of JSP Watch "Struts 2 Tiles: Using actions instead of JSP New topic
Author

Struts 2 Tiles: Using actions instead of JSP's

Payam Fard
Ranch Hand

Joined: Jan 31, 2003
Posts: 73
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

Joined: Jan 31, 2003
Posts: 73
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 Tiles: Using actions instead of JSP's
 
Similar Threads
Struts-Tiles problem
Tiles problem in rendering
Can a Tile refer to an action?
confusion on struts tile
Struts1 tiles