Hi guys,
I am trying to use the forward method inside RequestDispatcher. It didn't
give me any exceptions but it's giving me blank (I tried to forward it both
servlets and html pages that exist). Would someone give a clue on this?
1. Does it has something to do with the "target" I am trying to call? What
is it supposed to be in? a URL? Absolute path on the server?
2. Is there any settings on the server I need to fix?
Here is the sample source, I am running it on tomcat 3.2:
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.io.*;
public class TestDispatcher extends HttpServlet {
public void doGet (HttpServletRequest request, HttpServletResponse
response)
throws IOException, ServletException {
RequestDispatcher rd =
this.getServletContext().getRequestDispatcher("/index.html");
rd.forward(request, response);
}
}
Thanks!
___________________________________________________________________________
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