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


Silly me :-)

Many thanks all...


Adam


Christopher Schultz 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]




--

________________________________
Adam Lipscombe
Escalus Software Systems
[EMAIL PROTECTED]
Tel: 08450 170 850
www.expensys.com

This email and any files transmitted with it, including replies and
forwarded copies, may contain privileged and confidential information and
is intended solely for the person or organisation to whom it is addressed.
If you have received this communication in error, please notify us by email
([EMAIL PROTECTED]) or telephone (+44 (0)8450 170 850) and then delete the
email and any copies of it. Views or opinions expressed by an individual
within this email may not necessarily reflect the views of Escalus Software
Systems Ltd.

Although most emails and attachments from Escalus Software Systems Ltd are
screened, it is the responsibility of the recipient to ensure
that they are virus free. Escalus Software Systems Ltd will not accept any
liability for damage caused by a virus.

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

Reply via email to