S
suman yadav
hello,
i am having problem in compling methods of jsdk2.3
the code is-
import java.io.*;
import java.servlet.*;
import java.servlet.http.*;
public class hello4 extends HttpServlet{
public void doGet(HttpServletRequest req,
HttpServletRequest res)
throws IOException,ServletException{
req.setAttribute("my","you");
RequestDispatcher dis=req.getRequestDispatcher("/servlet/hello5");
dis.forward(req,res);
}
}
i have set class path for jsdk2.3 as c:\jsdk2.3\javax\jsdk2.3.jar
but it is giving error in req.setAttribute
& error in req.getRequestDispatcher() methods
help me
i am having problem in compling methods of jsdk2.3
the code is-
import java.io.*;
import java.servlet.*;
import java.servlet.http.*;
public class hello4 extends HttpServlet{
public void doGet(HttpServletRequest req,
HttpServletRequest res)
throws IOException,ServletException{
req.setAttribute("my","you");
RequestDispatcher dis=req.getRequestDispatcher("/servlet/hello5");
dis.forward(req,res);
}
}
i have set class path for jsdk2.3 as c:\jsdk2.3\javax\jsdk2.3.jar
but it is giving error in req.setAttribute
& error in req.getRequestDispatcher() methods
help me