wood burning stoves 2.0*
The moose likes Struts and the fly likes struts2 action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 action" Watch "struts2 action" New topic
Author

struts2 action

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
what should be written in Action class in order to saty in same page(ui) on click on submit button with the changes? In struts1 we can do return mapping.getInputForward()...what shd be done in Action class of Struts2? kindly help!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Create a result that maps to the same page, and return that result name.
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
you mean to say something like this??

If I have my jsp's in folder jsp and am in index.jsp...

<result name="success1" >/jsp/index.jsp</result>

I did not understand what you meant by return the result... kindly explain...

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

 
wood burning stoves
 
subject: struts2 action
 
Similar Threads
Struts2 Annotations
Tags in struts2
struts2 result
Struts2 and Spring integration
datetimepicker in struts2