TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG-DEVEL:222] Servlets that change the URL request on the fly?
Bob Tanner <tanner@real-time.com> writes:
> Is is possible for a servlet to change the requested url in its response back
> to the client?
>
> For example:
>
> User requests http://www.bob.com/servlet/BobServlet, handle the request, and
> part of that handling would be to re-write the requested url to
> http://www.bob.com/bob.html so the response would be the servlets output, but
> the url would look like a static page.
>
I'd think you could do something like a CGI works, just output
Location: http://www.bob.com/bob.html \n\n
--
Jon Schewe
http://eggplant.mtu.net/~jpschewe
schewe@tcfreenet.org