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
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,
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
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
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