> > 2)when i use request.getRequestDispatcher("someservlet").
> > iam getting error like no method getRequestDispatcher(String) defined in
> ServletRequest

try
MyServlet.getServletContext().getRequestDispatcher()

regards
Pramod Nair


> From: "shashi kanth goud" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 27, 2001 10:05 AM
>
>
> > Hai all out there,
> > Iam using javawebserver2.0 . I have got foolowing problems
> > 1)when i use request.getServletPath()or request.getRealPath() iam
getting
> null
> > 2)when i use request.getRequestDispatcher("someservlet").
> > iam getting error like no method getRequestDispatcher(String) defined in
> ServletRequest
> > 3)when i use (new File("someFile)).listFiles().it's throwing error no
such
> method found but when i use list() it's perfectly returning String[]
> >
> > will be very thankfull if u please solve above problem
> > Shashi
> >
>
>
___________________________________________________________________________
> 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

___________________________________________________________________________
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