Solved

Checking if https is used

Posted on 2006-10-24
4
171 Views
Last Modified: 2010-04-01
Hey experts,

  I need to check in the jsp page if ssl is used (i.e. the page is accessed via https), or not (accessed via normal http)...any help on how to do that??
0
Comment
Question by:mte01
  • 2
4 Comments
 
LVL 14

Assisted Solution

by:boonleng
boonleng earned 130 total points
ID: 17801422
use the method getScheme() from HttpServletRequest. It will return http, https, or ftp.

<%=request.getScheme()%>
0
 
LVL 16

Accepted Solution

by:
suprapto45 earned 250 total points
ID: 17801716
Hi,

Alternatively, you can use
<%= request.isSecure() %>
0
 
LVL 3

Author Comment

by:mte01
ID: 17821217
That did the trick!...thx for your help guys!
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 17825721
Glad I could help.

:)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
This article describes how to reset your Windows 10 password when you've forgotten it.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question