Hi,

I have some questions about RequestDispatcher class defined in API 2.1.

1) I can get an instance of RequestDispatcher by calling
   ServletContext#getRequestDispatcher(String urlpath) method.
   Here, if the urlpath is set like "/fooServlet", it works.
   Can I specify a full URL path like "http://.../..." to the urlpath?
   By using JSDK2.1ea's servletrunner, I could not get an instance of
   RequestDispatcher for servlets on other servlet engines.

2) Both cases when I called forward() and include() method,
   if the first servlet is called by HTTP GET, the target servlet is
   also called by doGet method, and if the first servlet is called by
   HTTP POST, the target is also called by doPOST (i.e. both servlets
   are called by same service method). When I use forward() method,
   it has no problem. But when I use include(), I want to change it.
   (e.g. first method is called by HTTP POST and target servlet is
   called by doGet). is this feature supported in some servlet
engines?
   Or, I have to write a following code?

        void doPOST(req, res) {
                doGET(req, res);
        }

3) In the API document, include() method in the RequestDispatcher
   class throws IOException
   "if the ServletOutputStream or a writer had already been obtained
    from the response object"
   Is this correct?

TIA.
--
____________________________________________________
  Takayuki TACHIKAWA  /   NTT SOFT, Advanced Technology Development
Dept.
_____________________/    [EMAIL PROTECTED]
phone/fax:045-212-8018/7948

___________________________________________________________________________
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