HEEELP! problem calling jsp from servlet in jswdk

1999-09-24 Thread Emilio Alvarez
I made this servlet call jsp page with getServletConfig().getServletContext().getRequestDispatcher([page name]).forward(rq, rp); this run good in a netscape Enterprise server but in a jswdk 1.0 I found this message java.lang.IllegalStateException OutputStream or Write has already

Re: HEEELP! problem calling jsp from servlet in jswdk

1999-09-24 Thread Olivier Brand
The problem is you cannot do a forward if you have open a stream before. It is all explained in the Servlet/JSP specification. Olivier Emilio Alvarez wrote: I made this servlet call jsp page with getServletConfig().getServletContext().getRequestDispatcher([page name]).forward(rq,

Calling JSP from Servlet

1999-06-27 Thread Anonymous
I know this is stupid, but I'm going to ask anyway. Do I have to have the com.sun.server classes in order to call JSP's from a Servlet? I want to have the complete separation of business logic from presentation and in order to do this right I need to use Servlets to handle some requests and

Re: Problems calling JSP from servlet (easy question)

1999-05-14 Thread Richard Dallaway
Try /test.jsp not just test.jsp I mean: use the full path to your JSP file, relative to the document root. Just something to try... Richard From: Matt Bromley [EMAIL PROTECTED] Reply-To: Matt Bromley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Problems calling JSP from servlet (easy

Problems calling JSP from servlet (easy question)

1999-05-13 Thread Matt Bromley
This should be easy, but I can't seem to figure out what's going on (wrong). I've got a jsp page, test.jsp - which works fine (gets compiled and executes correctly), however when I try to call it from a servlet, JRUN throws up java.lang.NullPointerException: at