Struts如何找到CSS文件? [英] How is struts finding css files?
问题描述
我正在使用struts2.在我的JSP中,我有一个<s:head />
标记.这样就触发了此CSS链接插入最终HTML文件的过程:
I'm working with struts 2. In my JSP I have a <s:head />
tag. Somhow this triggers this css links to be inserted into the final HTML file:
<link href="/app/styles/design.css" rel="stylesheet" type="text/css" media="all"/>
<link href="/app/styles/print.css" rel="stylesheet" type="text/css" media="print"/>
<link rel="stylesheet" href="css/flick/jquery-ui-1.10.0.xyz.min.css" />
struts如何知道此文件?如何添加其他CSS文件或进行更改?
How does struts know about this files? How can I add other CSS files or change them?
推荐答案
这真是令人讨厌.毕竟,我发现该应用程序正在使用sitemesh ,并且在最终的jsp中使用了<s:head>
标记.这意味着前三个CSS文件来自sitemesh模板,struts/xhtml/styles.css
来自xhtml fremarker模板.
This was a nasty one. After all I discovered that the application is using sitemesh and uses the <s:head>
tag in the final jsp. This means the first 3 CSS files are comming fromt the sitemesh template, the struts/xhtml/styles.css
is comming from the xhtml fremarker template.
这篇关于Struts如何找到CSS文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!