I have a quest about include action the fellowing is my code
================
<HTML>
<HEAD>
<TITLE>Hello World</TITLE>
<%@ page buffer="none" %>
</HEAD>
<BODY>
<h1>Hello World</h1>
<jsp:include page="/Include_Action_JSP10/inc0.jsp" />
<jsp:include page="/Include_Action_JSP10/inc1.jsp" />
<jsp:include page="/Include_Action_JSP10/inc2.jsp" />
</BODY>
</HTML>
=================
inc0.jsp , inc1jsp , inc2.jsp are the same
==============
<%@ page buffer="none" %>
<h1>Include file: inc1.jsp</h1>
<%
for(int i = 0; i < 5; i++)
 out.println("number " + i + "<br>");
%>
===============
 
the result is very strange
=============
<HTML>
<HEAD>
<TITLE>Hello World</TITLE>
 
</HEAD>
<BODY>
<h1>Hello World</h1>
 
<h1>Include file: inc0.jsp</h1>
number 0<br>
number 1<br>
number 2<br>
number 3<br>
number 4<br>
=============
only inc0.jsp to be include . Wby? can anybody tell me ? thanx
 
-Brenden- @_@

Reply via email to