...or request.isSecure()

Larry


On 3/27/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adam,

Adam Lipscombe wrote:
> From a Struts Action is it possible to tell if SSL is in use?
>
> I tried httpServletRequest.getPathInfo(), getRequestURL() and
> getAuthType(), but none of these seem to return anything that indicates
> if the request started with "http:" or "https:".

You gave up just before you found it: you are looking for
ServletRequest.getScheme():

http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/ServletRequest.html#getScheme()

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGCQ+S9CaO5/Lv0PARAkmCAJ9hkkNR1L6Iw96RPblDI1Cdi2u2JACghzCx
vXRRXPsacHdw8fF0S63CKxE=
=Txbs
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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