You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2004/01/09 22:50:59 UTC
cvs commit: jakarta-struts/web/examples/WEB-INF/validator struts-config.xml
husted 2004/01/09 13:50:59
Modified: web/examples/WEB-INF struts-config.xml
web/examples/WEB-INF/upload struts-config.xml
web/examples/WEB-INF/validator struts-config.xml
Log:
Enable inputForward for upload and validator modules.
Revision Changes Path
1.2 +1 -2 jakarta-struts/web/examples/WEB-INF/struts-config.xml
Index: struts-config.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/web/examples/WEB-INF/struts-config.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- struts-config.xml 8 Jan 2004 16:22:11 -0000 1.1
+++ struts-config.xml 9 Jan 2004 21:50:59 -0000 1.2
@@ -15,6 +15,5 @@
<action-mappings>
<action path="/welcome" forward="/welcome.html" />
</action-mappings>
- <controller />
<message-resources parameter="MessageResources" />
</struts-config>
1.2 +4 -2 jakarta-struts/web/examples/WEB-INF/upload/struts-config.xml
Index: struts-config.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/web/examples/WEB-INF/upload/struts-config.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- struts-config.xml 8 Jan 2004 16:23:03 -0000 1.1
+++ struts-config.xml 9 Jan 2004 21:50:59 -0000 1.2
@@ -7,12 +7,14 @@
<action-mappings>
<action path="/upload" forward="/upload.jsp" />
<!-- Upload Action -->
- <action path="/upload-submit" type="org.apache.struts.webapp.upload.UploadAction" name="uploadForm" scope="request" input="/upload.jsp">
+ <action path="/upload-submit" type="org.apache.struts.webapp.upload.UploadAction" name="uploadForm" scope="request" input="input">
+ <forward name="input" path="/upload.jsp" />
<forward name="display" path="/display.jsp" />
</action>
</action-mappings>
<!-- This is where you set the maximum file size for your file uploads.
-1 is an unlimited size. If you
don't specify this here, it defaults to -1. -->
- <controller maxFileSize="2M" />
+ <controller maxFileSize="2M" inputForward="true" />
+ <message-resources parameter="org.apache.struts.webapp.upload.UploadResources"/>
</struts-config>
1.2 +8 -3 jakarta-struts/web/examples/WEB-INF/validator/struts-config.xml
Index: struts-config.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/web/examples/WEB-INF/validator/struts-config.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- struts-config.xml 8 Jan 2004 16:23:45 -0000 1.1
+++ struts-config.xml 9 Jan 2004 21:50:59 -0000 1.2
@@ -26,7 +26,8 @@
<action path="/welcome" forward="/index.jsp" />
<!-- Registration Action -->
<action path="/registration" forward="/registration.jsp" />
- <action path="/registration-submit" type="org.apache.struts.webapp.validator.RegistrationAction" name="registrationForm" scope="request" validate="true" input="/registration.do">
+ <action path="/registration-submit" type="org.apache.struts.webapp.validator.RegistrationAction" name="registrationForm" scope="request" validate="true" input="input">
+ <forward name="input" path="/registration.do" />
<forward name="success" path="/index.jsp" />
</action>
<action path="/jsRegistration" forward="/jsRegistration.jsp" />
@@ -39,7 +40,8 @@
</action>
<!-- Type Action -->
<action path="/type" forward="/type.jsp" />
- <action path="/type-submit" type="org.apache.struts.webapp.validator.TypeAction" name="typeForm" scope="request" validate="true" input="/type.do">
+ <action path="/type-submit" type="org.apache.struts.webapp.validator.TypeAction" name="typeForm" scope="request" validate="true" input="input">
+ <forward name="input" path="/type.do" />
<forward name="success" path="/welcome.do" />
</action>
<!-- JavaScript Type Action -->
@@ -47,7 +49,8 @@
<forward name="success" path="/jsType.do" />
</action>
<action path="/jsType" forward="/jsType.jsp" />
- <action path="/jsType-submit" type="org.apache.struts.webapp.validator.TypeAction" name="jsTypeForm" scope="request" validate="true" input="/editJsType-submit.do?typeForm.reset=false">
+ <action path="/jsType-submit" type="org.apache.struts.webapp.validator.TypeAction" name="jsTypeForm" scope="request" validate="true" input="input">
+ <forward name="input" path="/editJsType-submit.do?typeForm.reset=false" />
<forward name="success" path="/welcome.do" />
</action>
<!-- Locale Action -->
@@ -55,6 +58,8 @@
<forward name="success" path="/welcome.do" />
</action>
</action-mappings>
+ <!-- ============================================= Controller Definition -->
+ <controller inputForward="true" />
<!-- ===================================== Message Resources Definitions -->
<message-resources parameter="org.apache.struts.webapp.validator.MessageResources" />
<!-- ============================================ Plug Ins Configuration -->
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org