Hello, I downloaded JSDK 2.1a from java.sun.com recently and I am using the web server included in this package (once known as "servletrunner") to experiment with servlets. What I would like to do is that one servlet, which controls granting access based on user/pass, lets another one display the welcome page after successful login. The page displayer can be accessed as follows from the browser: http://localhost:8080/jpl/servlet/passgate/somepage.html (passgate is the servlet's name) However, when I try to forward a request from the other servlet to it, like below: RequestDispatcher rd = getServletConfig().getServletContext().getRequestDispatcher ( "/jpl/servlet/passgate/secret.html"); rd.forward (req, res); I get an error: "The page you are looking for cannot be displayed because the address is incorrect. HTTP 405 - Resource not allowed" The documentation of RequestDispatcher does not give me a clue of what can be wrong - I suspect that the web server from JSDK works wrongly. Because I am newbie to servlets though, the reason can as well be my lack of understanding. Also, the following piece of documentation (about RequestDispatcher.forward) is unclear to me: "You cannot use forward if the target resource has already returned a ServletOutputStream or PrintWriter object to the servlet. In that situation, forward throws an IllegalStateException." "the target resource has already returned..." - how can it "return" a PrintWriter? return it to where? Thanks for your help in advance - JPL http://www.kki.net.pl/jpl Remote Java Development -- Wyslano przez bezplatny serwer KKI ___________________________________________________________________________ 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