Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

(minus) <li><a href="<s:url action="Login"/>">Sign On</a></li>
(plus) <li><a href="<s:url action="Login!_input"/>">Sign On</a></li>

...

(minus) <action name="Login" class="tutorial.Login">
(plus) <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 the Login 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.

...