• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to find the current page is Secure or non-secure?

 
Gershwin Yesudhas
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

Need a help.
There is a template JSP file in my project which will be called by each and every page JSPs in my project. I need to find whether the current page which has called this common template jsp is a secure page(HTTPs) or Non-secure(HTTP).

Thanks for reading my post. Thanks in advance for the help.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the javadoc for HttpServletRequest?
 
Gershwin Yesudhas
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't check that yet friend. Is there a possibility to find just the type of the page i.e Secure or Non-secure??? Please comment on this. if yes please help. Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please ShowSomeEffort. There's a link in my previous post that you can look up the answer yourself.
 
Gershwin Yesudhas
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Please ShowSomeEffort. There's a link in my previous post that you can look up the answer yourself.


Definitely Bear. Thanks for the encouragement friend.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic