The newline between the "{%> and <%@ include file" causes a println
to be generated and sends output the to client, which precludes the
jsp:forward from working because forwards only work before you generate
output. I think if you eliminate this newline, the problem will go away.
tim.
> <%@ page ... %>
> <%
> if (request.getParameter("checkpage").equals("page2"))
> {%>
> <%@ include file="page2.jsp" %>
> <%}
> else ...
> %>
> -----------------------------------------------------------
> page2.jsp:
>
> <%@ page ... %>
> <%
> do a database update
> %>
> <jsp:forward page="page1.jsp">
> <jsp:param name="checkpage" value="page2" />
> </jsp:forward>