[英]How to set up links in Activeweb?
初始應用程序網址為
http://localhost:8080/activeweb-bootstrap-custom/
Freemarker的模板鏈接看起來像
href =“ / test”
問題是當我單擊鏈接,然后應用程序URL更改為http:// localhost:8080 / test 。 顯然,應用程序名稱丟失了。 如何設置應用程序以打開具有完整URL的鏈接? 鏈接應該是
http://localhost:8080/activeweb-bootstrap-custom/test
您與ActiveWeb或Freemarker無關。 任何JSP或純HTML都可以使用。
當您的第一個字符為“ /”時,瀏覽器將創建一個指向根上下文的新URL。 只需刪除正斜杠以指向當前位置即可:
<a class="btn btn-lg btn-success" href="test" role="button">test controller</a></p>
發射
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.