Date: 2004-09-21T06:13:12 Editor: NiallPemberton <[EMAIL PROTECTED]> Wiki: Apache Struts Wiki Page: StrutsUpgradeNotes11to124 URL: http://wiki.apache.org/struts/StrutsUpgradeNotes11to124
no comment Change Log: ------------------------------------------------------------------------------ @@ -78,6 +78,17 @@ '''N.B.''' There is a new '''configFactory''' ''init'' parameter in Struts 1.2 which can be used to set a custom ModuleConfigFactory class. This could be used to initialize default ModuleConfig settings on a ''struts-wide'' basis. +== <html:form> Tag Attribute Deprecations == + +The '''name''', '''scope''' and '''type''' attributes on the <html:form> tag were ''deprecated'' in Struts 1.1 and have now been removed in Struts 1.2. + +The <html:form> tag was enhanced in Struts 1.1 to automatically create a new ActionForm instance based on the ''action mapping'' from the struts-config.xml. However the behaviour associated with the ''name'', ''scope'' and ''type'' attributes still functioned. + +In struts 1.2 you need to remove these attributes from the <html:form> tag in your jsp. If the values for these attributes match what you have in the struts-config.xml for the ''mapping'' then just removing them should be the the only action you need to take. + +If they are not the same then problems will almost certainly occur when you upgrade to Struts 1.2 and remove the attributes. If, for example, you have pre-filled a form and stored it in a different scope these will no longer be displayed and the form values appear to have been lost. This can be resolved either by changing the scope on the ''mapping'' or by storing the form in the correct scope. + + ---- CategoryHomepage StrutsUpgrade --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
