• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 - Redirect when using tiles

 
John Cena
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic