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
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: 21
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: 61661
    
  67

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: 21
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: 61661
    
  67

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: 21
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.
 
Consider Paul's rocket mass heater.
 
subject: How to find the current page is Secure or non-secure?