On Mon, 2002-09-30 at 16:20, Chris Backas wrote:
> Hello all,
> I've got a servlet which is basically a set of selection criteria, and the
> end result is to get a list of parameters from the user, and then pass this
> on to another program via a URL - essentially, I want to be able to do
> Application.forward() to a URL that's not pointing to another servlet. Is
> an HTTP redirect with the parameters encoded into the URL the only way I can
> achieve this? Any alternative ideas? Thanks for any input.
Well, with Apache you can do an internal redirect by using a Location
header, but no Status header (and not give an absolute URL, i.e., no
http://). I'd worry about security if that was an issue -- you could
probably figure it out okay, but it's a little fuzzy who can access
Of course, you can also use os.popen and friends, instead of
transferring control entirely. Otherwise I'd just do like Geoff
suggested, and do an external redirect, perhaps communicating through a
database or text file.