Struts2-使用POST方法进行跨域重定向
struts 2.0.11——目前我在本地机器上,有两个不同的web应用程序分别在tomcat(struts 2.0.11)和weblogic下运行 Tomcat: 链接:localhost:8080/retail/order.action struts.xml:Struts2-使用POST方法进行跨域重定向,struts2,Struts2,struts 2.0.11——目前我在本地机器上,有两个不同的web应用程序分别在tomcat(struts 2.0.11)和weblogic下运行 Tomcat: 链接:localhost:8080/retail/order.action struts.xml: <action name="order" method="execute" class="com.retail.action.OrderAction"> <result name="redirect" type=
<action name="order" method="execute" class="com.retail.action.OrderAction">
<result name="redirect" type="redirect">
<param name="location">${weblogicURL}?user=${user}</param>
</result>
</action>
我想从tomcat使用POST方法访问weblogic,有什么方法可以实现吗?这就是文档中所说的
会话或具有可以是OGNL表达式的web参数(url?name=value)
这表明我们只能通过get方法发送数据,而您尝试执行的操作目前还不可能
一个可能的解决方案似乎是使用动作链接。请查看官方文档了解详细信息
重定向
结果
localhost:7020/retail/orderPortal?user=test