A related issue, also in my wiki project is, that we would like to "forward"
a user to a site, based on the result of a method call. If the method
returns true, the user should be forwarded to a dynamically generated site.
If the method returns false, a static error message should come up.
Again, I know how to do this in PHP, by sending header() data, but in Java
this is still a bit of a mystery to me.
Thanks a lot!
sid
Tor Iver Wilhelmsen - 23 Sep 2006 16:26 GMT
> Again, I know how to do this in PHP, by sending header() data, but in Java
> this is still a bit of a mystery to me.
Client-side forwarding is done via ServletResponse.forward(). This
sets the required headers. Note that this must be done before you do
any writing to the body.
sid derra - 23 Sep 2006 16:41 GMT
>> Again, I know how to do this in PHP, by sending header() data, but in
>> Java
[quoted text clipped - 3 lines]
> sets the required headers. Note that this must be done before you do
> any writing to the body.
thanks - thats exactly what i was looking for!