You can use any of these 2 methods.

request.getProtocol()

Returns the name and version of the protocol the request uses in the
form protocol/majorVersion.minorVersion, for example, HTTP/1.

request.getScheme()
Returns the name of the scheme used to make this request, for example,
http, https, or ftp.

-Sam



Dion Almaer wrote:
>
> Hi all,
>
> How can you find out if the JSP page is running under https or http?
>
> Like: request.ServerVariables("HTTPS")
>
> Thanks,
>
> Dion
>
> --
>          \\|//
>          (o o)
> +----oOOo-(_)-oOOo--------------------------------------------------+
> |   [EMAIL PROTECTED]   | "There are three kinds of people            |
> | www.almaer.com/dion |  those who can count, and those who can't"  |
> +-------------------------------------------------------------------+
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to