What was the version you have migrated from? Maybe this is your case https://struts.apache.org/docs/s2-018.html
Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2017-08-02 10:53 GMT+02:00 Lukasz Lenart <lukaszlen...@apache.org>: > Could you post a generated html? > > 2017-08-01 22:21 GMT+02:00 sharmila thota <t.sharm...@gmail.com>: >> Hello Lukas, >> >> That was just typo in email. But my code is having correctly. >> Also I tried adding one more button on jsp and tried with click event. that >> too did not work. >> Here I am attaching the code: >> >> *action method: * >> public String newMethod() throws Exception { >> System.out.println("hello....."); >> return "newPage"; >> } >> >> *struts.xml:* >> <action name="correctionNew" class="com.fund.action.CorrectionsAction" >> method="newMethod"> >> <result name="newPage">/WEB-INF/jsps/q6/Q6New.jsp</result> >> </action> >> >> *jsp code :* >> <s:form namespace="/" id="correctionsReApplyFundId"> >> <input type="button" class="pure-button pure-button-primary" id="newButton" >> value="New Button"/> >> >> $('#newButton').click(function () { >> alert("...submit b1.."); >> $('#correctionsReApplyFundId').attr('action', '<s:url >> action="correctionNew"/>'); >> alert("...submit b2.."); >> $('#correctionsReApplyFundId').submit(); >> alert("...submit b3.."); >> }); >> >> thanks >> Sharmila >> >> On Tue, Aug 1, 2017 at 3:00 PM, Lukasz Lenart <lukaszlen...@apache.org> >> wrote: >> >>> 2017-08-01 15:42 GMT+02:00 sharmila thota <t.sharm...@gmail.com>: >>> > <result name="reFunding">/WEB-INF/ >>> jsps/q6/Q6New.jsp</result> >>> >>> this isn't the same result name as below >>> >>> > return "refunding"; >>> >>> >>> Regards >>> -- >>> Łukasz >>> + 48 606 323 122 http://www.lenart.org.pl/ >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands, e-mail: user-h...@struts.apache.org >>> >>> --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org