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 2004/12/14 17:31:02 UTC
DO NOT REPLY [Bug 32698] New: -
Make ActionForm accessible via request attribute for *each* request
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=32698>.
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=32698
Summary: Make ActionForm accessible via request attribute for
*each* request
Product: Struts
Version: 1.2.6 Beta
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Controller
AssignedTo: dev@struts.apache.org
ReportedBy: matthew.sgarlata@verizon.net
What would the Struts committers think of advertising the ActionForm at a set
request attribute key for *each* request? This would allow other frameworks and
toolkits easier access to the Struts ActionForm. (I have a specific use case in
mind, if you'd like more info). It would also dramatically simplify the code in
FormTag.initFormBean, which ends up having to work backwards to determine where
the ActionForm is after-the-fact, and eventually stores the ActionForm in a set
request attribute anyway (Constants.BEAN_KEY).
Changes I propose (and I will submit patches if someone will commit them!):
- Add code to the RequestProcessor.processActionForm method that causes it to
store a reference to the form in request scope at Constants.BEAN_KEY. (Existing
code which stores the ActionForm at the request or session attribute configured
through the ActionMapping will remain unchanged).
- Simplify FormTag.initFormBean to simply read the form bean from the request,
rather than working backwards to figure it out.
--
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