Hi,
I am unable to compile my servlet which is using
ServletRequest.getRequestDispatcher(), its giving error that no such
method. I am having JVM 1.1.7
If I use ServletContext.getRequestDispatcher(), its compiling and
executing but I can not use this methid as I have to specify the full
url in forward() method as my servlet is on some other server. And the
specification shows that ServletContext.getRequestDispatcher() takes
only absolute path (i.e. the url must start with /).
RequestDispatcher rd = null;
rd = req.getRequestDispatcher("http://hostname/servlet/Testservlet");
rd.forward(req, res);
Also if anybody can tell whether its possible to forward a request to a
servlet/jsp which is residing on some other server (i.e. different
domain). This is the reason why I have to specify the full url.
Thanks in advance.
Sushil
___________________________________________________________________________
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