aspose file tools*
The moose likes Struts and the fly likes can the application first page be tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "can the application first page be tiles" Watch "can the application first page be tiles" New topic
Author

can the application first page be tiles

subhit chauhan
Ranch Hand

Joined: Jun 20, 2002
Posts: 40
Hi !

Can the first index page be tiles page ? I am developeing an application named test in tomcat. If i give http://localhost:8080/test my first tile page having tiles definitions for header, footer, left, right menus should come. Any idea how to do that ?

regards,

Subhit
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Make an index.jsp that contains only the <logic:forward> tag, forwarding to the Action and/or view you need.
subhit chauhan
Ranch Hand

Joined: Jun 20, 2002
Posts: 40
Originally posted by Jason Menard:
Make an index.jsp that contains only the <logic:forward> tag, forwarding to the Action and/or view you need.


Hi Jason !

Thanks for your valuable reply but fowarding to Tiles definitions is not supported from this tag.

regards,
Subhit
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Use ForwardAction. The code below shows how to accomplish what you are trying to do.

index.jsp


struts-config.xml

[ February 18, 2005: Message edited by: Jason Menard ]
 
 
subject: can the application first page be tiles