David,

which web server r u using? I am also having the same problem in JWS. I was
told that there are a few configurations to be set in the JW. I dunno what r
those? AH, my suggestion is put this block in try-catch block. But now your
error will not be program error but jws error.

srinivas.


>From: David Reck <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: using RequestDispatcher.forward
>Date: Sun, 13 Aug 2000 01:49:30 -0600
>
>I have the following code:
>
>RequestDispatcher rd =
>getServletContext().getRequestDispatcher("/servlet/testServlet");
>rd.forward(request, response);
>
>The code works when I forward to a servlet but the code does not work when
>I try
>to forward to a jsp page or a html page.  I get a
>java.lang.NullPointerException
>with jsp's and html's.  Is there anything different that needs to be done
>when
>forward to something other than a servlet.
>
>Any suggestions would be greatly appreciated.
>
>Thanks,
>
>Dave
>
>*******************Internet Email Confidentiality Footer*******************
>
>
>Privileged/Confidential Information may be contained in this message.  If
>you
>are not the addressee indicated in this message (or responsible for
>delivery of
>the message to such person), you may not copy or deliver this message to
>anyone.
>In such case, you should destroy this message and kindly notify the sender
>by
>reply email. Please advise immediately if you or your employer do not
>consent to
>Internet email for messages of this kind.  Opinions, conclusions and other
>information in this message that do not relate to the official business of
>my
>firm shall be understood as neither given nor endorsed by it.
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to