Servlet jsdk2.3

From: suman yadav (yadsuman_at_yahoo.co.in)
Date: 01/29/04

  • Next message: Richard: "Microsoft JVM Version"
    Date: 28 Jan 2004 23:29:06 -0800
    
    

    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


  • Next message: Richard: "Microsoft JVM Version"

    Relevant Pages

    • jsdk2.3
      ... i am having problem in compling methods of jsdk2.3 ... public class hello4 extends HttpServlet{ ... public void doGet(HttpServletRequest req, ... but it is giving error in req.setAttribute ...
      (comp.lang.java.programmer)
    • Re: jsdk2.3
      ... > i am having problem in compling methods of jsdk2.3 ... > public class hello4 extends HttpServlet{ ... > but it is giving error in req.setAttribute ... IBM Australia - Tivoli Security Software ...
      (comp.lang.java.programmer)