Solved

Checking if https is used

Posted on 2006-10-24
4
174 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Microsoft is moving in-place eDiscovery & hold from ECP to EOP console under Content Search in Search and Investigation Options.  In this post, I will be showing you how to export emails to a PST file using the Content Search Options.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

726 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