Hi,
I worked with Spring-MVC in my past projects and I really liked the idea
of my form actions/controllers to initialize my forms when I access them
with an HTTP GET and then process the forms with an HTTP POST. The nice
effect of this is that I have one single URL that does form
initialization as well as processing the form.
See for more details on how Spring MVC is doing it:
http://www.springframework.org/docs/api/org/springframework/web/servlet/mvc/AbstractFormController.html
Can I do something similar in Struts2?
It would be great if I could do something like this (May not make total
sense but I hope to convey my intent):
<action name="editUser" http-method="GET" method="input"> (no
validation)
<result name="success">/editUser.jsp</result>
</action>
<action name="editUser" http-method="POST" method="editUser">
(validate form and process)
<result name="input">/editUser.jsp</result>
<result name="success" type="redirect">/main.html</result>
</action>
Thanks a lot for any insights!
Regards,
Gunnar Hillert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]