Well... it works only after I load the servlet by directly invoking if
first.
After that all calls to this servlet using <jsp:include work.
The problem could be websphere3.0, which is not calling the servlet
init method when the servlet is called using jsp:include.
Thanks
Kamal

-----Original Message-----
From: Kamal Anand [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 29, 1999 11:54 AM
To: [EMAIL PROTECTED]
Subject: including servlet output into jsp


Hi All:
Does anyone know how to migrate the following tag jsp 0.91 code to JSP 1.0?

<servlet name="/servlet/MyServlet" code="/servlet/MyServlet"></servlet>

I tried replacing the above with
<jsp:include page="/servlet/MyServlet" flush="true" />

but it gives an exception on the call to printwriter.

The above code basically includes the output from MyServlet into the current
jsp file.
The limitations being the servlet cannot set headers etc.


The code for MyServlet looks like

doGet or doPost
{
   PrintWriter out = res.getWriter();
   out.print("something");
}

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to