struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Form not submitting, after migration
Date Wed, 02 Aug 2017 08:53:23 GMT
Could you post a generated html?

2017-08-01 22:21 GMT+02:00 sharmila thota <t.sharmila@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 <lukaszlenart@apache.org>
> wrote:
>
>> 2017-08-01 15:42 GMT+02:00 sharmila thota <t.sharmila@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-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message