2011-12-31 60 views
0

我有两个Web应用程序。合并两个Web模块

申请1 -

struts.xml的

<result name="store" type="redirectAction"> 
      <param name="actionName">storeslist</param> 
      <param name="namespace"></param> 

      <param name="tok">${token}</param> 
     </result> 

应用2

struts.xml的

<action class="com.aa.store" name="storeslist" > 

     <result>/WEB-INF/jsp/store.jsp</result> 
    </action> 

现在我需要实现这个

Application1包含一个链接“商店”点击此链接它必须去应用程序的商店页面2

如何做到这一点?

我试过<Valve className="org.apache.catalina.authenticator.SingleSignOn"/>在tomcat server.xml但没有工作。

emptySessionPath="true" in <connector...> tomcat server.xml仍然没有工作。

回答

0

据我所知,目前不工作没有绝对链接,因为Struts2总是将http://server.domain.tld/appname prepends到所有链接。如果你有一个解决方案,请发表一个答案,因为我自己会对此非常感兴趣。我的解决方法可以在这里找到:Deploying Struts2 Application without ContextPath