You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@apache.org on 2001/08/08 06:25:01 UTC
cvs commit: jakarta-struts/web/example/WEB-INF struts-config.xml
craigmcc 01/08/07 21:25:01
Modified: web/example/WEB-INF struts-config.xml
Log:
Do not declare the "name" attribute on the edit actions, because there is
no need to accept an input form and populate it's properties for these
actions.
However, use the "attribute" attribute to identify the key under which the
form bean will be stored for use by the subsequent "save" action.
Revision Changes Path
1.13 +2 -2 jakarta-struts/web/example/WEB-INF/struts-config.xml
Index: struts-config.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/web/example/WEB-INF/struts-config.xml,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- struts-config.xml 2001/06/25 00:02:31 1.12
+++ struts-config.xml 2001/08/08 04:25:01 1.13
@@ -75,7 +75,7 @@
<!-- Edit user registration -->
<action path="/editRegistration"
type="org.apache.struts.webapp.example.EditRegistrationAction"
- name="registrationForm"
+ attribute="registrationForm"
scope="request"
validate="false">
<forward name="success" path="/registration.jsp"/>
@@ -84,7 +84,7 @@
<!-- Edit mail subscription -->
<action path="/editSubscription"
type="org.apache.struts.webapp.example.EditSubscriptionAction"
- name="subscriptionForm"
+ attribute="subscriptionForm"
scope="request"
validate="false">
<forward name="failure" path="/mainMenu.jsp"/>