wrote:
> I am trying to do a
> response.sendRedirect("http://"+"/servlet/MyServlet");
>
> I get an error:
> java.io.IOException: Response has been closed
Well, that is probably because you're trying to redirect to the URL
http:///servlet/MyServlet
That doesn't work.
If /servlet/MyServlet is served at the same hostname as the page you're
redirecting from, for example if you're redirecting from
http://abc.def.org/some.jsp to
http://abc.def.org/servlet/MyServlet, then you
can do this:
response.sendRedirect("/servlet/MyServlet")
otherwise you need to include the full URL.
--
JustThe.net Internet & New Media Services,
http://JustThe.net/
Steven J. Sobol, Geek In Charge / 888.480.4NET (463

/
PGP Key available from your friendly local key server (0xE3AE35ED)
Apple Valley, California Nothing scares me anymore. I have three kids.