aspose file tools
The moose likes Struts and the fly likes Struts Tiles - Forwarding question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Struts Tiles - Forwarding question" Watch "Struts Tiles - Forwarding question" New topic
Author

Struts Tiles - Forwarding question

Angelo Bonaparte
Greenhorn

Joined: Aug 02, 2006
Posts: 19
I've been looking at a few Struts applications and was wondering if forwarding to a tile is better than forwarding to a jsp(that uses tiles) directly. What would be the advantage of one over the other? Thanks.
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi Angelo,

Forwarding to a tile is a little better.

If you want all of your pages to have a the same menu and header, you can:
-copy/paste includes into all of your .jsp files
or:
-define a template with header and menu, and let other pages inherit from that template. This way you can also put all the linking to .js and .css files in just one file.

Herman
 
I agree. Here's the link: jrebel
 
subject: Struts Tiles - Forwarding question
 
Similar Threads
bean:define error - Cannot find bean in scope null
Tiles
Does anyone know what this error means?
How can add a company emblem in many pages?
Change color of clicked link - tiles