...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<action name="Logon" class="tutorial.Logon">
<result type="redirectAction">Menu</result>
<result name="input">/tutorial/Logon.jsp</result>
</action>
|
...
The Logon mapping uses a different return type for "success" (the default result code). The redirect-action
redirectAction
result type takes the name of an Action (as configured in the struts.xml
file) as a parameter, and then issues a client-side redirect to the new action. As a result, the URI on the browser's location bar will change.
...