THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
<li><a href="<s:url action="Login"/>">Sign On</a></li>
<li><a href="<s:url action="Login!_input"/>">Sign On</a></li>
...
<action name="Login" class="tutorial.Login">
<action name="Login!_*" method="{1}" class="tutorial.Login">
...
To open the Login form, the Welcome page refers to Login!_input
.
- The framework matches this reference with the
Login!_*
action mapping. - The "method={1}" attribute is replaced with "method=input".
- The framework invokes the
input
method on theLogin
Action class. - Since "input" is on a special list of methods that bypass validation, the validation framework is not invoked.
- The default
input
method returns the result code "input". - The framework renders "Login.jsp" as the response, without any validation messages.
...