Re: [s2] s:submit type=button action=../ broken in IE (was: [S2] Multiple Submits with different actions in a Form)
I thought IE's broken button behavior was already documented, including on the wiki? d. --- David Durham, Jr. [EMAIL PROTECTED] wrote: Things like: s:form action=MyAction.do s:submit type=button/ s:submit type=button action=MyAction!cancel value=Cancel/ /s:form work for me in firefox, but don't seem to work in IE. Could you provide the rendered HTML that works in one browser but not the other? Sure. TestCancel.jsp -- !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; %@ taglib prefix=s uri=/struts-tags% html head titleCancel Test/title /head body s:form action=TestCancel.do s:submit type=button action=TestCancel!submit value=Submit/ s:submit type=button action=TestCancel!cancel value=Cancel/ /s:form /body /html struts-config.xml -- action name=TestCancel class=com.TestCancel result name=submit type=redirect/TestCancel.jsp?cancelled=false/result result name=cancel type=redirect/TestCancel.jsp?cancelled=true/result /action com.TestCancel package com; public class TestCancel { public String submit() { return submit; } public String cancel() { return cancel; } } Removing type=button will fix the IE issue. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] s:submit type=button action=../ broken in IE (was: [S2] Multiple Submits with different actions in a Form)
Things like: s:form action=MyAction.do s:submit type=button/ s:submit type=button action=MyAction!cancel value=Cancel/ /s:form work for me in firefox, but don't seem to work in IE. Could you provide the rendered HTML that works in one browser but not the other? Sure. TestCancel.jsp -- !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; %@ taglib prefix=s uri=/struts-tags% html head titleCancel Test/title /head body s:form action=TestCancel.do s:submit type=button action=TestCancel!submit value=Submit/ s:submit type=button action=TestCancel!cancel value=Cancel/ /s:form /body /html struts-config.xml -- action name=TestCancel class=com.TestCancel result name=submit type=redirect/TestCancel.jsp?cancelled=false/result result name=cancel type=redirect/TestCancel.jsp?cancelled=true/result /action com.TestCancel package com; public class TestCancel { public String submit() { return submit; } public String cancel() { return cancel; } } Removing type=button will fix the IE issue. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] s:submit type=button action=../ broken in IE (was: [S2] Multiple Submits with different actions in a Form)
On 7/26/07, Dave Newton [EMAIL PROTECTED] wrote: I thought IE's broken button behavior was already documented, including on the wiki? That may be. Here's the rendered HTML: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html head titleCancel Test/title /head body form id=TestCancel.do name=TestCancel.do onsubmit=return true; action=/TestCancel.do method=posttable class=wwFormTable tr td colspan=2div align=rightbutton type=submit id=TestCancel.do_TestCancel!submit name=action:TestCancel!submit value=SubmitSubmit/button /div/td /tr tr td colspan=2div align=rightbutton type=submit id=TestCancel.do_TestCancel!cancel name=action:TestCancel!cancel value=CancelCancel/button /div/td /tr /table/form /body /html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]