>From a Servlet use something like the following:

RequestDispatcher dispatcher;
        try{
            dispatcher = getServletContext( ).getRequestDispatcher
("/dir/dir/fileName.jsp");

                   dispatcher.forward( request, response);

        }catch(NullPointerException np){
        np.printStackTrace( );
        }catch(FileNotFoundException fn){
        fn.printStackTrace( );
        }catch(IOException e){
        e.printStackTrace( );
        }catch(Exception ex){
        ex.printStackTrace( );
        }

----- Original Message -----
From: "Mukka, Srikanth" <[EMAIL PROTECTED]>
Date: Friday, October 27, 2000 8:50 am
Subject: Reg getRequestDispatcher

> Hi All,
>
> I have a simple program which is tring to launch Jsp.We are using
> OralceInternet Application Server(IAS),
> Which comes with Apache Listner. We have JSDK2.0. Does JSDK1.0
> supportsRequestDispatcher, to my knowledge RequestDispatcher is
> supported by
> JSDK2.1., if it is so then how do call a JSP from servlets using
> JSD2.0. I
> tried on our server it is giving this problem
>
> $ javac CallJsp.java
> CallJsp.java:24: Method getRequestDispatcher(java.lang.String) not
> found in
> inte
> rface javax.servlet.ServletContext.
>
> getServletConfig().getServletContext().getReques
> tDispatcher("/serv_cc/merfile.jsp").forward(request,response);
>
>           ^
> 1 error
>
> Waiting for response.
>
> Bye
> Srikanth
>
>
> -----Original Message-----
> From: T A Flores [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 26, 2000 10:09 PM
> To: [EMAIL PROTECTED]
> Subject: Re: IO & PDF Problem
>
>
> O'Reilly publishes a book on Java I/O you can modify some of the
> techniques to work within a servlet.
>
> ----- Original Message -----
> From: Ade Permana <[EMAIL PROTECTED]>
> Date: Thursday, October 26, 2000 8:53 pm
> Subject: IO & PDF Problem
>
> > Hi, I'm new on Servlet Prog.
> > Can servlet do write/read directly to file on server ?
> >
> > I need to develop a part of web app. which can write pdf files to
> > server(the rest of my apps. are using EJB and JSP)
> >
> > does someone have experience on it ?
> >
> > thank's
> >
> >
>
________________________________________________________________________
> ___
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in
> > the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http:
> > Resources: http://java.sun.com/products/servlet/external-
> > resources.htmlLISTSERV Help:
> > http://www.lsoft.com/manuals/user/user.html
>
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to