JSP actions 使用您可以動態的插入一個文件
(
(
(
(
(
(
這個action使您可以在即將生成的頁面上包含進一些文件
<jsp:include page="relative URL" flush="true" />
與include directive不同
WhatsNew
<HTML>
<HEAD>
<TITLE> JSP教程</TITLE>
<BODY >
<CENTER>
<TABLE BORDER=
<TR><TH CLASS="TITLE"> What"s New at Chinese comic sites</TABLE>
</CENTER>
<P>
Here is a summary of our four most recent news stories:
<OL>
<LI><jsp:include page="news/Item
<LI><jsp:include page="news/Item
<LI><jsp:include page="news/Item
<LI><jsp:include page="news/Item
</OL>
</BODY>
</HTML>
當然您可以定義自己的HTML文件
您應該將文件放到您的JSP目錄下的news目錄內
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19813.html