0
注意:我不能將它們打包到EAR中。這裏有一些限制。從另一個war文件訪問一個war文件的頁面?
我有2個戰爭檔案。
help.war和helpConnect.war
兩者都放置在GlassFish服務器的同一個域。
從help.war的索引頁我在helpConnect.war訪問一個頁面這樣的..
<a href="helpConnect/HelpInternal/index.htm">Help Internal</a>
這不是工作,因爲當我嘗試到服務器,該URL上訪問其嘗試訪問是這樣的..
http://localhost:8080/help/helpConnect/HelpInternal/index.htm
然而,由於helpConnect是一個完全不同的戰爭文件,我需要這樣的
http://localhost:8080/helpConnect/HelpInternal/index.htm
網址10
任何想法如何解決這個問題?
哇!非常感謝你..額外的斜線徹底改變了。 :) – swateek