• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 - A Query about Redirect

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without any context it's impossible to answer that question.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The context is that upon pressing the Cancel button on to the Login.jsp , the user should be redirected to the logincancel.jsp page .



.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic