struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r469969 - in /struts/struts2/trunk/apps/showcase/src/main: java/org/apache/struts2/showcase/DateAction.java resources/struts.xml
Date Wed, 01 Nov 2006 16:28:53 GMT
Author: tmjee
Date: Wed Nov  1 08:28:52 2006
New Revision: 469969

URL: http://svn.apache.org/viewvc?view=rev&rev=469969
Log:
WW-1486 
   - showcase throws exception when validation error occurred, due to no "input" result for
DateAction.
   - changed DateAction method from "execute" to "browse" so it would be escaped from validation


Modified:
    struts/struts2/trunk/apps/showcase/src/main/java/org/apache/struts2/showcase/DateAction.java
    struts/struts2/trunk/apps/showcase/src/main/resources/struts.xml

Modified: struts/struts2/trunk/apps/showcase/src/main/java/org/apache/struts2/showcase/DateAction.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/java/org/apache/struts2/showcase/DateAction.java?view=diff&rev=469969&r1=469968&r2=469969
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/java/org/apache/struts2/showcase/DateAction.java
(original)
+++ struts/struts2/trunk/apps/showcase/src/main/java/org/apache/struts2/showcase/DateAction.java
Wed Nov  1 08:28:52 2006
@@ -82,9 +82,8 @@
     }
 
     /**
-     * @see com.opensymphony.xwork2.ActionSupport#execute()
      */
-    public String execute() throws Exception {
+    public String browse() throws Exception {
         Calendar cal = GregorianCalendar.getInstance();
         now = cal.getTime();
         cal.roll(Calendar.DATE, -1);

Modified: struts/struts2/trunk/apps/showcase/src/main/resources/struts.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/resources/struts.xml?view=diff&rev=469969&r1=469968&r2=469969
==============================================================================
--- struts/struts2/trunk/apps/showcase/src/main/resources/struts.xml (original)
+++ struts/struts2/trunk/apps/showcase/src/main/resources/struts.xml Wed Nov  1 08:28:52 2006
@@ -59,7 +59,7 @@
             <result>viewSource.jsp</result>
         </action>
 
-        <action name="date" class="org.apache.struts2.showcase.DateAction">
+        <action name="date" class="org.apache.struts2.showcase.DateAction" method="browse">
             <result name="success">/date.jsp</result>
         </action>
 



Mime
View raw message