This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 - Redirect when using tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 - Redirect when using tiles" Watch "Struts 2 - Redirect when using tiles" New topic
Author

Struts 2 - Redirect when using tiles

John Cena
Greenhorn

Joined: May 05, 2010
Posts: 6
Hi,

I am working on struts2 and I know how to normally refirect the page in case of some specific action......

<action name="Login" class="com.action.Login">
<result name = "success" type="redirect">/Home.tiles</result>
</action>

But now the problem is,
I am using tiles and I will have to define type = "tiles" attribute and now xml will now allow me to define the value of type attribute twice

Please help me how to solve the problem..

Thanks in advance,
Hirav Oza
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Redirect to a home page action that uses the tiles result. If there's no functionality it can just be an action mapping with no class specified.
 
wood burning stoves
 
subject: Struts 2 - Redirect when using tiles
 
Similar Threads
Struts 2.1 Need two different success results
Struts2 Image Display Replaces Response
Struts2- How to pass dynamic parameters from one Action class to another Action class
Struts2 CannotRenderException
Using redirect-action