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/11/23 15:21:01 UTC

DO NOT REPLY [Bug 32358] New: - Having one LookupDispatchAction mapping two Submit buttons with different actionKeys to two different Methods having equal Discription in Application.resources - always the first key ist used

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

           Summary: Having one LookupDispatchAction  mapping two Submit
                    buttons with different actionKeys to two different
                    Methods having equal Discription in
                    Application.resources - always the first key ist used
           Product: Struts
           Version: 1.1RC2
          Platform: PC
        OS/Version: Windows 95
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Controller
        AssignedTo: dev@struts.apache.org
        ReportedBy: anja.holsten@gmx.de


$Id: README,v 1.16 2002/03/21 02:57:24 craigmcc Exp $

Having one LookupDispatchAction  mapping two Submit buttons with different 
actionKeys to two different Methods having equal Description in 
Application.resources - always the first key ist used

<<< struts_conf.xml>>>
    <action 
		name="DummyForm"
    		path="/backwardActionType" 
    		parameter="action"
    		type="de.i2dm.action.BackwardDispatchAction" >
      <forward name="SuccessBasic" path="/page1.jsp" />
      <forward name="SuccessEdit" path="/page2.jsp" />           
    </action>

<<<SUBMIT on different pages>>>
<html:form action="backwardActionType" >
 <html:submit property="action">
	<bean:message key="button.one"/>
 </html:submit>
</html:form>
AND
<html:form action="backwardActionType" >
 <html:submit property="action">
	<bean:message key="button.two"/>
 </html:submit>
</html:form>


<<<ApplicationResource>>>
button.one=back
button.two=back

<<<LookupDispatchAction>>>

map.put("button.one","proc_one");
map.put("button.two","proc_two");

Submit takes alway button.one because button.one and button.two have the same 
desciption in Application.resources and
button.one stands first in the list.

-- 
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