webwork/src/docs action.xml,1.3,1.4 index.xml,1.21,1.22
[email protected] Sun, 23 Jun 2002 17:00:28 -0700
| Newsgroups | gmane.comp.java.webwork.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/webwork/webwork/src/docs
In directory usw-pr-cvs1:/tmp/cvs-serv31722
Modified Files:
action.xml index.xml
Log Message:
update action text
Index: action.xml
===================================================================
RCS file: /cvsroot/webwork/webwork/src/docs/action.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- action.xml 8 Mar 2002 05:41:51 -0000 1.3
+++ action.xml 24 Jun 2002 00:00:24 -0000 1.4
@@ -31,8 +31,18 @@
build its context. After the context is built, the dispatcher will call the action's
<literal>execute</literal> method. The action will perform its work and return a string
to the dispatcher that it will use to determine what, if any, view should be rendered to
- the user. Most times you will return SUCCESS, ERROR, INPUT, or LOGIN from your action.
+ the user. Most times you will return <literal>SUCCESS, ERROR, INPUT, or LOGIN</literal> from your action.
You would then provide a view mapping entry which would map these to a view.
+ </para>
+
+ <para>
+ WW requires all actions to have a corresponding view. There are two exceptions to this rule. First exception
+ is if your action is part of a chain, you do not need a corresponding view. Only the last action in the chain
+ requires a view.
+ Second exception is if your action returns <literal>NONE.</literal> This is a special token that WW
+ uses to indicate to the dispatcher to not forward the request to a view. The assumption is that you have
+ provided any request handling necessary such as <literal>responde.sendRedirect()</literal>.
+ See <literal>redirect</literal> for an example.
</para>
<para>
Index: index.xml
===================================================================
RCS file: /cvsroot/webwork/webwork/src/docs/index.xml,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- index.xml 17 Jun 2002 21:31:04 -0000 1.21
+++ index.xml 24 Jun 2002 00:00:25 -0000 1.22
@@ -176,7 +176,6 @@
&validation;
&errors;
&wizards;
- &wizards;
&chaining;
&i18n;
&intellij;
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/