tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patri...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin ApplicationResources_en.properties ApplicationResources_es.properties SampleAction.java
Date Sun, 18 Nov 2001 17:17:08 GMT
patrickl    01/11/18 09:17:08

  Modified:    webapps/admin/WEB-INF struts-config.xml
               webapps/admin/WEB-INF/classes/org/apache/webapp/admin
                        ApplicationResources_en.properties
                        ApplicationResources_es.properties
                        SampleAction.java
  Log:
  Made sample.do forward to a "Save Successful" page if validation passes
  
  Revision  Changes    Path
  1.7       +4 -0      jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml
  
  Index: struts-config.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- struts-config.xml	2001/11/10 18:05:31	1.6
  +++ struts-config.xml	2001/11/18 17:17:08	1.7
  @@ -46,6 +46,10 @@
                       path="/tree-control-test.jsp"
                   redirect="false"/>
   
  +    <forward        name="Save Successful"
  +                    path="/saved.jsp"
  +                redirect="false"/>
  +
     </global-forwards>
   
   
  
  
  
  1.4       +1 -0      jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_en.properties
  
  Index: ApplicationResources_en.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_en.properties,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ApplicationResources_en.properties	2001/11/10 18:05:32	1.3
  +++ ApplicationResources_en.properties	2001/11/18 17:17:08	1.4
  @@ -20,3 +20,4 @@
   prompt.moreText=More Text
   sample.someText.required=<li>"Some Text" cannot be empty</li>
   sample.moreText.required=<li>"More Text" cannot be empty</li>
  +save.success=Save sucessful!
  
  
  
  1.4       +1 -0      jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_es.properties
  
  Index: ApplicationResources_es.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_es.properties,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ApplicationResources_es.properties	2001/11/10 18:05:32	1.3
  +++ ApplicationResources_es.properties	2001/11/18 17:17:08	1.4
  @@ -20,3 +20,4 @@
   prompt.moreText=M\u00e1s Texto
   sample.someText.required=<li>\u00abAlg\u00fan Texto\u00bb no puede ser vac\u00edo</li>
   sample.moreText.required=<li>\u00abM\u00e1s Texto\u00bb no puede ser vac\u00edo</li>
  +save.success=\u00a1Guardar tiene \u00e9xito!
  
  
  
  1.3       +6 -6      jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/SampleAction.java
  
  Index: SampleAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/SampleAction.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SampleAction.java	2001/11/09 18:18:43	1.2
  +++ SampleAction.java	2001/11/18 17:17:08	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/SampleAction.java,v
1.2 2001/11/09 18:18:43 patrickl Exp $
  - * $Revision: 1.2 $
  - * $Date: 2001/11/09 18:18:43 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/SampleAction.java,v
1.3 2001/11/18 17:17:08 patrickl Exp $
  + * $Revision: 1.3 $
  + * $Date: 2001/11/18 17:17:08 $
    *
    * ====================================================================
    *
  @@ -78,7 +78,7 @@
    * Implementation of <strong>Action</strong> that validates a user logon.
    *
    * @author Patrick Luby
  - * @version $Revision: 1.2 $ $Date: 2001/11/09 18:18:43 $
  + * @version $Revision: 1.3 $ $Date: 2001/11/18 17:17:08 $
    */
   
   public final class SampleAction extends Action {
  @@ -108,8 +108,8 @@
                                    HttpServletResponse response)
           throws IOException, ServletException {
   
  -        // Forward back to the test page
  -        return (mapping.findForward("Tree Control Test"));
  +        // Forward to the success page
  +        return (mapping.findForward("Save Successful"));
   
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message