user3363771
user3363771

Reputation: 11

http or https from url

Here's the scenario.

My Java web application has following path https://www.mywebsite.com:9443/MyWebApp Let's say there is a JSP file https://www.mywebsite.com:9443/MyWebApp/protected/index.jsp and I need to retrieve the above url within this JSP file. I can retrive everything but i need to retrieve the https as well. How can i retrive https in jsp file.

Upvotes: 1

Views: 158

Answers (1)

ankit
ankit

Reputation: 41

string scheme = request.getscheme();

Upvotes: 2

Related Questions