This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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 ]
 
Consider Paul's rocket mass heater.
 
subject: can the application first page be tiles
 
Similar Threads
Resource not found
how to redirect url to the login page?
Redirection problem with Javascript
Accessing a JSP from different machine
Session Verification