struts 2.0.11 – Currently I’m in my local machine and have two different web applications running under tomcat (struts 2.0.11) and weblogic respectively.
Tomcat:
Link: localhost:8080/retail/order.action
struts.xml:
<action name="order" method="execute" class="com.retail.action.OrderAction">
<result name="redirect" type="redirect">
<param name="location">${weblogicURL}?user=${user}</param>
</result>
</action>
I have necessary attributes like ‘weblogicURL’ and ‘user’ in OrderAction in Tomcat Web app. Now this is working and weblogic resource is getting accessed as GET method like the following,
localhost:7020/retail/orderPortal?user=test
I would like to access weblogic using POST method from tomcat, is there any way to achieve that?
This is what the redirect documentation says
Which indicates that we can only send data only by get method and what you are trying to do is not possible as of now.
One possible solution seems to use Action Chaining.Please go through the official document for details