的原因是下列: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“。”是我尝试的第一件事,它会产生同样的例外。 –