2011-12-31 58 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