Author: pbenedict
Date: Sun Apr 8 20:02:03 2007
New Revision: 526638
URL: http://svn.apache.org/viewvc?view=rev&rev=526638
Log:
STR-3024: Added ERROR, INPUT, LOGIN, SUCCESS constants
Modified:
struts/struts1/trunk/core/src/main/java/org/apache/struts/action/Action.java
Modified:
struts/struts1/trunk/core/src/main/java/org/apache/struts/action/Action.java
URL:
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/action/Action.java?view=diff&rev=526638&r1=526637&r2=526638
==============================================================================
---
struts/struts1/trunk/core/src/main/java/org/apache/struts/action/Action.java
(original)
+++
struts/struts1/trunk/core/src/main/java/org/apache/struts/action/Action.java
Sun Apr 8 20:02:03 2007
@@ -76,7 +76,43 @@
* functionality.</p>
*/
private static TokenProcessor token = TokenProcessor.getInstance();
+
+ /**
+ * The action execution was a failure. Show an error view, possibly asking
+ * the user to retry entering data.
+ *
+ * @since Struts 1.4
+ */
+ public static final String ERROR = "error";
+ /**
+ * The action execution require more input in order to succeed. This
+ * result is typically used if a form handling action has been executed
+ * so as to provide defaults for a form. The form associated with the
+ * handler should be shown to the end user.
+ * <p>
+ * This result is also used if the given input params are invalid,
+ * meaning the user should try providing input again.
+ *
+ * @since Struts 1.4
+ */
+ public static final String INPUT = "input";
+
+ /**
+ * The action could not execute, since the user most was not logged in.
+ * The login view should be shown.
+ *
+ * @since Struts 1.4
+ */
+ public static final String LOGIN = "login";
+
+ /**
+ * The action execution was successful. Show result view to the end user.
+ *
+ * @since Struts 1.4
+ */
+ public static final String SUCCESS = "success";
+
// NOTE: We can make the tken variable protected and remove Action's
// token methods or leave it private and allow the token methods to
// delegate their calls.