my dog learned polymorphism*
The moose likes JSP and the fly likes restricting a JSP to HTTPS access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "restricting a JSP to HTTPS access" Watch "restricting a JSP to HTTPS access" New topic
Author

restricting a JSP to HTTPS access

Manuj Bawa
Greenhorn

Joined: Dec 13, 2004
Posts: 7
Hi,

I am using tomcat 4.1 and SSL is implemented on Apache, so all the pages can be accessed through http as well as https, but there is this one page that should only be accessed through HTTPS, Is Filter defination in deployment descriptor and defining Filter Implementation class the correct solution to this?


Thanks,
Manuj
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

"Manuj" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Tarun Gandhi
Greenhorn

Joined: Jan 13, 2003
Posts: 13
You can try the following as well:

String scheme = request.getScheme();

if(scheme.equals("http"))
{
//forward to the https url
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: restricting a JSP to HTTPS access
 
Similar Threads
Struts on file upload "page can not be displayed"
Using https for certain JSP
Problem to filter requests to App name
Setting up a filter without using a servlet
Safeguarding JSP pages