hi:
     I have two servlet, TestServlet1 and TestServlet2..

    in TestServlet1  I use
   RequestDispatcher rd =
      getServletConfig().getServletContext().getRequestDispatcher 
("/my_html/TestServlet2")
  .forward(req.res);

  to call TestServlet2...

   in JDeveloper  I set  [JDeveloper_DIR]\myclasses as my  classpath

   the TestServlet1  is in       [JDeveloper_DIR]\myclasses\com.pole.TestServlet1
  and the TestServlet2 is in [JDeveloper_DIR]\myclasses\com.pole.MMOA\TestServlet2

  and I use Web Object Manager to register these two Servlets

  com.pole.TestServlet1   -->   /my_html/TestServlet1
  com.pole.MMOA.TestServlet2  -->  /my_html/TestServlet2

  BUT I failed to make the .getRequestDispatcher work

  I dont know how to make the .getRequestDispatcher work in JDeveloper

  anyone will give me your opinion? thank in advance!!!


--------------------------

  another question mentioned here:

   when I put the code below in TestServlet1 doPost() method,
   the names is null , is it normal or something I went wrong,
   much appreciate for your response....

            Enumeration names = 
getServletConfig().getServletContext().getServletNames();
                                    ^^^^^^^^^ null
            while(names.hasMoreElements()) {
               String name = (String)names.nextElement();
               Servlet servlet = getServletContext().getServlet(name);
System.out.println(name + " " + servlet.getClass().getName());
            }

___________________________________________________________________________
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