Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 struts2 框架和在 struts1 中我们使用从基本 url 指向它
<html:rewrite page='/stylesheets/m.css'/>
请告诉我如何在 sturts2 中做同样的事情
As @Quaternion commented
<link rel="stylesheet" href="<s:url value="/stylesheets/m.css"/>" /> <link rel="stylesheet" href="${pageContext.request.contextPath}/stylesheets/m.css" type="text/css">
Strut2 UrlTag