aspose file tools*
The moose likes Spring and the fly likes How to find the current page is Secure or non-secure? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to find the current page is Secure or non-secure?" Watch "How to find the current page is Secure or non-secure?" New topic
Author

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

Gershwin Yesudhas
Greenhorn

Joined: May 09, 2010
Posts: 14
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.


Best Regards,
Gersh
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60077
    
  65

Have you checked the javadoc for HttpServletRequest?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gershwin Yesudhas
Greenhorn

Joined: May 09, 2010
Posts: 14
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

Joined: Jan 10, 2002
Posts: 60077
    
  65

Please ShowSomeEffort. There's a link in my previous post that you can look up the answer yourself.
Gershwin Yesudhas
Greenhorn

Joined: May 09, 2010
Posts: 14
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.
 
wood burning stoves
 
subject: How to find the current page is Secure or non-secure?
 
Similar Threads
Security implementation - suggestions
request object populate.
How do I find the page where i am coming from in my current jsp page
How to specify the Relative path of a file in fileinputstream?
calling javascript function after execution of actionListener method