File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

restricting a JSP to HTTPS access

 
Manuj Bawa
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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!
 
Tarun Gandhi
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try the following as well:

String scheme = request.getScheme();

if(scheme.equals("http"))
{
//forward to the https url
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic