DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7377>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7377

custom <html:form> tag does not take advantage of the ActionMapping property called 
<attribute>

           Summary: custom <html:form> tag does not take advantage of the
                    ActionMapping property called <attribute>
           Product: Struts
           Version: 1.0 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The Javadoc refers to the ActionMapping.attribute property as the key name of 
the bean used when attaching it to the request-scope or session-scope.

If no value for <attribute> is specified then the value of the <name> property 
is used as the key.

But in the FormTag, it does not refer to the ActionMapping.attribute property.  
It only uses the ActionMapping.name property.

In FormTag.java (version 1.0 and 1.0.2)
Line 803 is currently:
        name = mapping.getName();

I believe it should be:
        name = mapping.getAttribute();

This will then use the proper key for the form bean.  The ActionServlet 
currently does use 'attribute' parameter.

To test this
-use an 'attribute' parameter in the struts config (i.e. attribute=currentForm)
-attach a form bean named 'currentForm' to the proper scope
-then try to refer to the form bean on the JSP page
   you will find the form bean is blank because it was newly constructed by the 
FormTag


Hope this helps,
ivan.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to