aspose file tools*
The moose likes Struts and the fly likes dynamic page throught tile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "dynamic page throught tile" Watch "dynamic page throught tile" New topic
Author

dynamic page throught tile

Hong Yi
Greenhorn

Joined: Feb 13, 2008
Posts: 11
I like to render dynamic page through tile framwork. I have layout header,body and footer. I like to rend the dynamic page under the body. How do i do it through tile-def configuration file? Do I need to use one action or two?

thanks
Amit Y Desai
Ranch Hand

Joined: Dec 06, 2007
Posts: 35



here base layout has four componenet...header.footer.left nav and body....
as you can see in tiles defination i have dynamically placed jsp in each of four areas...
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
On the "one action or two" (or more) question....I normally have one action that gathers the data needed for all the tiles. The processing needed for the common tiles is handled in a base action class. I recall a previous project that I worked on where I was working on one tile that had its own action. I do not recall exactly how that was configured.

- Brent
Hong Yi
Greenhorn

Joined: Feb 13, 2008
Posts: 11
Brent,
thanks for the reply. If one of the tiles (header.jsp) has it own action, there will be two requests sent to the same page. How to handle it? is it possible to call an action from another action by using forward?

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamic page throught tile
 
Similar Threads
Modify servlet output to include standard data
Legal to put a bean:write inside tiles-defs.xml?
Using Tiles and html:img tag
Struts 1.2 - Tiles - Wrong Action Being Submitted
Nested Tiles