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=14116>.
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=14116

Add "getMap()" method to DynaActionForm to let JSTL EL reference DynaActionForms

           Summary: Add "getMap()" method to DynaActionForm to let JSTL EL
                    reference DynaActionForms
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Standard Actions
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Presently, DynaActionForm properties cannot be referenced in JSTL tags, or in EL
references in Struts-EL tags (normal "name/property" references in Struts-EL can
still reference them).

If JSTL EL syntax could reference DynaActionForm properties, it would enhance
developer's ability to integrate Struts and Struts-EL tags with JSTL tags.

Fortunately, one simple change will provide this, although it will result in a
slightly different syntax.

By adding a single method to the DynaActionForm class, called "getMap()", which
returns the HashMap of values, this allows EL references like
"${bean.map.prop}", which references the "prop" property of the DynaActionForm.

There is some question whether it would be better to make this change in the
BeanUtils library itself, by changing the DynaBean interface.  However, this is
not a good idea, as DynaBeans do not have to be implemented with a Map.  Adding
a "getMap()" method to the interface would force all the inheriting classes to
not only define the method, but use that particular implementation.

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

Reply via email to