的原因是下列:URL標籤:
<s:url id="contextroot" includeContext="true" forceAddSchemeHostAndPort="true" value=""/>
這個標籤被用來訪問JQuery的主題在未來一:
<sj:head jqueryui="true" jquerytheme="cupertino" customBasepath="%{contextroot}themes" locale="en" />
這產生在客戶端頁面下面的HTML :
<link id="jquery_theme_link" rel="stylesheet" href="http://xxx.xxx.xxx.com/reportcenter/themes/cupertino/jquery-ui.css?s2j=3.6.1" type="text/css"/>
自從應用程序服務器在http中運行後,其中有http。
解決方案是刪除forceAddSchemeHostAndPort =「true」。 這種路徑是相對生成的:
<link id="jquery_theme_link" rel="stylesheet" href="themes/cupertino/jquery-ui.css?s2j=3.6.1" type="text/css"/>
是的,我做了。我得到異常 org.apache.jasper.JasperException:絕對URI:https://tiles.apache.org/tags-tiles不能在web.xml或部署該應用 的jar文件來解決 我不明白它在lib中的位置。 This:「一個可能有用的技巧是使用協議相關的超鏈接,格式爲」//example.com/image.gif「。」是我嘗試的第一件事,它會產生同樣的例外。 –