Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
formatxml
titlestruts.xml
borderStylesolid
<action name="Logon" class="tutorial.Logon">
  <result type="redirect-actionredirectAction">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.

...

Code Block
formatHTML
titleMenuMissing.jsp
borderStylesolid
<html>
<head><title>Missing Feature</title></head>

<body>
<p>
    This feature is under construction.
    Please try again in the next iteration.
</p>
</body>
</html>

...

Tip

If you are not using wildcards, another way to inject a "missing" page would be to specify a <action<default-defaultaction-ref> element

Including a Missing Page

...