most likely jsp page required to displayed contains
a syntax error. Try to compile the jsp page first and
than use it in request dispatcher.
----- Original Message -----
From: "Mangirish Phadnis" <[EMAIL PROTECTED]>
To: "JRun Talk" <[EMAIL PROTECTED]>
Sent: Sunday, July 09, 2000 5:57 PM
Subject: RequestDispatcher question
> Hi:
>
> I am writing a servlet, which does some processing and at the end should
> display a jsp page (see attached piece of code below). The problem I am
> having is it does all the processing, comes to the point where it creates
> the RequestDispatcher object, goes in the block of code where rd!=null,
and
> doesn't display the page (IE says done in the status line). I can't
figure
> our what's wrong with the rd.forward method.
>
> If it helps, I am using IIS4.0, JRun 3.0 and the web app is running in
> JRun's default server. I am compiling the servlet using JDK1.3.
>
> Any ideas? Thanks in advance.
>
> Mangirish.
>
> CODE:
>
****************************************************************************
> *
> // Obtain the ServletContext
> ServletContext SC = this.getServletContext();
> request.setAttribute("LoginID",LoginID);
> request.setAttribute("SessionID",SessionID);
> // Wrap the JSP page in a RequestDispatcher
> RequestDispatcher RD = SC.getRequestDispatcher
> ("/DisplayThankYouPage.jsp");
> if (RD != null)
> { // pass the control to the page
> try
> {
> RD.forward (request, response);
> }
> catch (Exception E)
> {
> System.out.println (" Problem invoking the page");
> }
> }
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
> --------------------------------------------------------------------------
----
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
> or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
>
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.