Hi Ced, The RequestDispatcher class was new for Servlet version 2.1, as was the method call:- public RequestDispatcher getRequestDispatcher(String urlpath); on ServletContext. I suspect that your compiler classpath is looking at an older version of the servlet API classes than 2.1 and so is not finding the method that its complaining about. If you are using jsdk2.0 and want to use Servlet version 2.1 or above features, either download the jsdk2.1 (from http://java.sun.com/products/servlet), or better still, get the Tomcat web server (from http://jakarta.apache.org) which implements the very latest version of the servlet API - version 2.2. When you come to compile your Login class, don't forget to make sure that you have the servlet.jar from the servlet engine you are using correctly in your classpath for the javac compiler. Hope this helps, - Danny > hi, > > sorry this is a newbie question. i'm trying to get a requestDispatcher > method. at first it said, class requestdispatcher not found, i > suspected that it would be my servlet.jar's version, after that i went > to download a new version(2.1) of servlet.jar. it gives this error, so > called method not found, blah blah..... > > thanks for any help/suggestion. > > peace, > ced > > RequestDispatcher rd = > getServletContext().getRequestDispatcher("/welcome.jsp"); > > Login.java:83: Method getRequestDispatcher(java.lang.String) not found > in interface javax.servlet.ServletContext. > getServletContext().getRequestDispatcher("/welcome.jsp"); > ^ > 1 error > > ___________________________________________________________________________ > 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 Danny Coward Servlet Specification & Web Java Java Software Group, Sun Microsystems [EMAIL PROTECTED] ___________________________________________________________________________ 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