This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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 .



.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic