Solved

Checking if https is used

Posted on 2006-10-24
4
170 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java beans and EJBs 5 192
reflection example 3 101
authenticate preemptively soap ui option 3 143
Limiting the number of characters a user can type in a text field 6 54
How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
An article on effective troubleshooting
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

786 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