Real quick, are you calling jsp:include inside of another tag? If you are it
won't work because of the flush.
Anyway for RequestDispatcher try something like this (BTW, haven't tried to
compile this)...
<%
RequestDispatcher reqDisp =
request.getRequestDispatcher("/servlet/TestServlet");
reqDisp.include(request,response);
%>
or for HttpURLConnection...
<%
HttpURLConnection connection = (HttpURLConnection)
(new URL("/servlet/TestServlet")).openConnection();
connection.connect();
BufferedReader in = new BufferedReader(
new InputStreamReader(connection.getInputStream()));
String line = null;
while ((line = in.readLine()) != null )
{
out.println(line);
}
%>
Troy
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 1:16 PM
To: [EMAIL PROTECTED]
Cc: Troy Landers
Subject: Re: Invoking a servlet from JSP
Do you have an example of this, or can you point me in the right
direction?
Bob
----------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]