java - HTTPs Post redirect -


i have transfer information external website on click of button. so, when click on button, new window opens, existing screen should remain is. using below configuration

<action name="actionname" class="actionclass"         method="executemethod">         <result name="success">../somejsp</result> </action> 

however, whenever click on button, screen gets refreshed , value on screen changes. there way prevent refresh?

i think need prevent default submit , call submit script. refer: http://www.w3schools.com/jquery/event_preventdefault.asp example.

whenever need preprocessing before actual form submit method allows that. call javasript function before doing actual submit or if needed prevent form submit.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -