wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "dynamic page throught tile" Watch "dynamic page throught tile" New topic

dynamic page throught tile

Hong Yi

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?

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

Joined: Feb 13, 2008
Posts: 11
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?

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: dynamic page throught tile
Similar Threads
Modify servlet output to include standard data
Legal to put a bean:write inside tiles-defs.xml?
Struts 1.2 - Tiles - Wrong Action Being Submitted
Using Tiles and html:img tag
Nested Tiles