[ http://issues.apache.org/struts/browse/WW-1166?page=comments#action_37752 ] tm_jee commented on WW-1166: ----------------------------
is this still an issue? > AJAX submit button with action parameter does not submit with action in the > query parameters in Firefox 1.5 > ----------------------------------------------------------------------------------------------------------- > > Key: WW-1166 > URL: http://issues.apache.org/struts/browse/WW-1166 > Project: Struts 2 > Issue Type: Bug > Components: Views > Affects Versions: WW 2.2.1 > Environment: Windows XP, Firefox 1.5 > Reporter: Jason Jones > Assigned To: Ian Roughley > Fix For: 2.0.0 > > > In Firefox 1.5, the AJAX submit button with an action attribute set doesn't > add that action attribute to the query params that get sent on a remote form > submission. It seems to work in IE, but not in Firefox 1.5. > Here is the JSP code, simplified for our purposes > <ww:form name="ReportInputForm" method="GET" id="reportForm" theme="ajax"> > ...other input fields here... > <ww:submit value="Action1" action="action1" theme="ajax" > resultDivId="testDiv"/> > <ww:submit value="Action2" action="action2" theme="ajax" > resultDivId="testDiv"/> > </ww:form> > Here is the HTML that gets rendered for the buttons: > ... > <button type="submit" dojoType="BindButton" formId="reportForm" f > name="action:action1" value="Action1" targetDiv="testDiv">Action1</button> > ... > <button type="submit" dojoType="BindButton" formId="reportForm" f > name="action:action2" value="Action2" targetDiv="testDiv">Action2</button> > Here is the line from my access log submitted in Firefox 1.5: > 127.0.0.1 - - [08/Feb/2006:13:03:27 -0600] "GET > /westown/showReport.action?reportID=5&field1=2007&field2=&field3=& HTTP/1.1" > 200 7538 > The same page submitted in IE6 > 127.0.0.1 - - [08/Feb/2006:16:01:20 -0600] "GET > westown/showReport.action?reportID=5&field1=2007&field2=&field3=&action%3Aaction1=Action1 > HTTP/1.1" 404 349 > So as you can see the action:action1 or action:action2 never made it into the > query string for the first. My guess is it's because it's a <button> instead > of an <input type="submit"...>. > This was discussed at > http://forums.opensymphony.com/thread.jspa?threadID=17424 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
