1

我正在使用 struts2 框架和在 struts1 中我们使用从基本 url 指向它

<html:rewrite page='/stylesheets/m.css'/>

请告诉我如何在 sturts2 中做同样的事情

4

1 回答 1

2

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

于 2012-11-22T15:35:05.877 回答