Unnecessary wrapping of Struts ActionForm in request
----------------------------------------------------

         Key: BEEHIVE-1004
         URL: http://issues.apache.org/jira/browse/BEEHIVE-1004
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
    Reporter: Rich Feit
 Assigned to: Rich Feit 
     Fix For: 1.1


This is an issue that was reported by a user.  I'm currently working on it and 
am entering the bug just to track it for future reference.  

In general, you can initialize form beans on the page by calling 
Forward.addOutputForm(), or by using the Forward constructor that takes a 
second (form bean) argument.  In the page, you can access the form bean with 
the 'actionForm' context, or using the Struts attribute in the request (the 
"name" of the form bean as defined in the Struts config file for the current 
module).  If you use a raw Struts ActionForm (not our FormData or a bean that 
doesn't extend either one), you end up with an 
org.apache.beehive.netui.pageflow.internal.AnyBeanActionForm in the Struts 
attribute in the request.  This is unnecessary -- if you passed a Struts 
ActionForm you should end up with that instance in the request attribute.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to