File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.
 
 
subject: Struts 2 - Redirect when using tiles
 
Similar Threads
Using redirect-action
Struts2 CannotRenderException
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