The api you want would be the servlet api

request.getScheme()


On 8 May 2004, at 18:35, Martin Alley wrote:


Hi,

I have a servlet filter to handle session timeouts.

This filter needs to redirect to an http page so that the new session
works in both http and https, so a forward is no good as the old session
may have timed out on an https page.


I'm using the sslext struts plugin which is configured with the port
numbers for http and https. I would like to read this port numbers in
the filter, so I can redirect to the correct absolute url (assuming host
name is the same for secure and insecure pages).


How do I do this?  Hopefully there's an API that can just give me these
parameters.  I don't want to (nor should I have to) parse the
struts-config myself.

Thanks
Martin





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to