Hi All ,

  Can anybody tell me whats wrong with this code . It
doesn't even compile . The error message is 'cannot
resolve symbol' for the line of the function
getRequestDispatcher();

Here is the code ::::

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class servlet1 extends HttpServlet
{
public void service(HttpServletRequest req ,
HttpServletResponse res) throws ServletException ,
IOException
{
        PrintWriter pr = res.getWriter();
        res.setContentType("text/html");

        ServletContext context = getServletContext();
        String url = "/servlet/servlet2";
        RequestDispatcher disp =
context.getRequestDispatcher(url);
        disp.forward(req , res);
}
}


Thanks ,
Mahesh

__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/

___________________________________________________________________________
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