Http post request from action

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Http post request from action

mteccles
Hi,

I have an action to invoke, and a set of parameters. I only know the namespace/name of the action, not the class.

I'm setting parameters in an interceptor.

However it is required that there are no visible URL parameters so it must not be a normal GET request. Is there anyway to acheive this?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Http post request from action

vinodkashyap
Administrator
Hi

you can use the following approach

<s:url id="abc" action="xyz">
<s:param name="a" value="123"/>
<s:param name="b" value="234"/>
</s:url>
<s:a href="%{abc}">click</s:a>