Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Change default input method on validation error 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 "Change default input method on validation error" Watch "Change default input method on validation error" New topic
Author

Change default input method on validation error

Pavel Macoun
Greenhorn

Joined: Aug 02, 2010
Posts: 4
Hi,

I would like to ask how it is possible to change calling of the default "input" method when a validation is not successfull.

Thank you.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

http://struts.apache.org/2.x/docs/workflow-interceptor.html

See the "inputResultName" parameter.
Pavel Macoun
Greenhorn

Joined: Aug 02, 2010
Posts: 4
Thank you very much!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

No problem.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Change default input method on validation error
 
Similar Threads
org.apache.struts2.dispatcher.Dispatcher serviceAction Could not find action or result
input reult type in Struts2
help on forward on actionForm's validation fail
struts2 doubt regarding result name="input"
S2: changing default validation mapping