How to redirect action with parameter as post in Struts? -


redirect action action struts.xml:

<action name="checklogin" class="logins" method="checklogin">     <result name="input" type="redirectaction">         <param name="actionname">sectordisplay</param>         <param name="branch_id">${branch_id}</param>     </result> </action> 

parametes sent branch_id on url , shows

http://localhost:8085/display/sectordisplay.action?branch_id=110 

i think not post, get.

i not want show param on url, there way hide or how can post action?

thank you..

with redirection can pass get parameters. can use action chaining alternative.

check these posts details:

can struts2 action redirect using post instead of get?

struts 1 redirect action action parameters post request


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

html - grunt SVG to webfont -

c# - SharpSsh Command Execution -