You've got servlet classes from an older version of the servlet API in your
classpath. Look for and remove them (probably a file named "jsdk.jar").
Craig McClanahan
Mohan Nai wrote:
> hi,
>
> I am having a problem with getRequestDispatcher().
> I am trying to forwqard a request from a servlet to
> jsp using
>
> getServletContext().
> getRequestDispatcher(URL).forward(req, res);
>
> where URL is the location of the jsp.
>
> when I try to compile the servlet it gives me an
> error stating that method
> getRequestDispatcher(java.lang.String) not found in
> the interface getServletContext().
>
> DO u guys have any suggestions??
>
> thanx,
> mohan
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.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
===========================================================================
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