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

actionmapping set-property problem in 1.1 upgrade





------- Additional Comments From [EMAIL PROTECTED]  2003-12-09 22:12 -------
>Looking again at the bug
>report, it seems  the set-property that is causing a problem is actually within
>a <forward /> element somewhere as it is trying to call setPublic() on
>ActionForward.

This assessment is correct. I re-investigated and found that while the struts-
config had many correct 'set-property' entries under <action> elements, it had 
a few incorrect 'set-property' entries under <forward> elements. I hadn't 
noticed this when I filed the bug.

e.g.:
       <action path="/forums/listtopics" 
type="com.participate.pe.msgboards.client.action.RootPostListInit"
         name="rootPostListForm" scope="request"
        className="com.participate.util.client.struts.ApplicationActionMapping" 
>
           <forward name="continue" path="/forums/displaymsgboard.jsp">
             <set-property property="public" value="true"/>
           </forward>
          <forward name="error" path="/debug/error.jsp" redirect="false"/>
       </action>

The Struts 1.1 dtd apears to allow the above, but only if it's qualified with 
the classname:

<!ELEMENT forward (icon?, display-name?, description?, set-property*)>
.....
     className       Fully qualified Java class name of ActionForward
                     subclass to use for this object.
                     ["org.apache.struts.action.ActionForward"]


Struts 1.0 must have ignored this issue.

I believe this isn't a bug.

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

Reply via email to