You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/09/24 06:13:07 UTC

DO NOT REPLY [Bug 36794] New: - Enhance DynaActionForm and sub-classes to allow normal property access in JSPs

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=36794

           Summary: Enhance DynaActionForm and sub-classes to allow normal
                    property access in JSPs
           Product: Struts
           Version: 1.3.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Controller
        AssignedTo: dev@struts.apache.org
        ReportedBy: laurie@holoweb.net


When using DynaActionForm and its sub-classes, it is necessary to use a
specialized syntax to refer to the bean's properties in JSPs and JSP 2.0 tag
files (e.g. form.map['property']). This makes it difficult to create re-usable
components that must access form beans (and is of particular concern in JSP 2.0
tag files) since every property access must accomodate both dyna bean access and
regular property access (e.g. form.property).

It would improve the usability of DyanBean-based action forms if the dynamically
generated bean supported regular property access syntax. The attachd patch uses
CGLIB to provide that capability.

Also attached are a JSP demonstrating what is possible with this patch applied,
together with sample configuration and test action code to excercise it.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org