我在Struts2的一個疑問,包括。我有一個header.jsp中頁是這樣的:Struts2的標籤庫需要的所有文件
<%@taglib prefix="s" uri="/struts-tags" %> <html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"></script>
</head>
<body>
和我回到Home.jsp頁是這樣的:
<%@taglib prefix="s" uri="/struts-tags" %>
<s:include value="/WEB-INF/doctor/header.jsp" ></s:include>
<h1>Hello World!</h1>
<s:include value="/WEB-INF/doctor/footer.jsp" ></s:include>
和footer.jsp中是:
</body>
</html>
我的問題是:我需要包括<%@taglib prefix="s" uri="/struts-tags" %>
標籤僅在header.jsp中還是需要把它列入雙方的header.jsp和針對home.jsp?
你需要把它列入這兩個正弦波都是獨立的JSP和,有自己的生命週期 –