aspose file tools*
The moose likes Struts and the fly likes Struts2 - A Query about Redirect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 - A Query about Redirect " Watch "Struts2 - A Query about Redirect " New topic
Author

Struts2 - A Query about Redirect

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234


Hi ,

I have some confusion in understanding Struts Redirection .Please help :

I have a user form with username and password text fields and two buttons for Submit and Cancel as shown below :



The struts.xml file contains these things :



I really don't understand what is the use of this line
<result name="cancel" type="redirect">loginCancel.jsp</result>


Is the above action CancelForm is not suffcient here ??

Please share your ideas .

Thank you.


Save India From Corruption - Anna Hazare.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Without any context it's impossible to answer that question.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

The context is that upon pressing the Cancel button on to the Login.jsp , the user should be redirected to the logincancel.jsp page .



.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 - A Query about Redirect
 
Similar Threads
Struts2 struck with a issue of 404
struts 2 validation and prevent double submit
problems in validation part of struts 2
problems validation.xml in struts 2
Struts 2 - wrong method executed