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

org.apache.struts.action.ActionForm properties not well-formed.

           Summary: org.apache.struts.action.ActionForm properties not well-
                    formed.
           Product: Struts
           Version: 1.0.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Controller
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I want to raise a problem due to the modification of the ActionForm Interface 
in Struts 1.0.1.
Since this release the getServlet() method is protected but not the setServlet
(...) which is always public.
(It is the same for the multipartRequestHandler property)
 
In my web application I use the BeanUtils class from the Jakarta Commons (v1.2) 
to copy a ActionForm Class.
But when I do it, I have an error :
java.lang.NoSuchMethodException: Property 'servlet' has no getter method
at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty
(PropertyUtils.java:962)
at org.apache.commons.beanutils.PropertyUtils.copyProperties
(PropertyUtils.java:255)
at org.apache.commons.beanutils.BeanUtils.cloneBean(BeanUtils.java:137)
......
I think the problem is that you must also put the setter method in
protected and not in public.

Wishing it will help you.

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

Reply via email to