File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Switching from HTTPS back to HTTP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Switching from HTTPS back to HTTP" Watch "Switching from HTTPS back to HTTP" New topic
Author

Switching from HTTPS back to HTTP

Michael Remijan
Ranch Hand

Joined: May 29, 2002
Posts: 103

Using security constraints in the web.xml, I know how to automatically swtich from HTTP to HTTPS if a user goes to a resource in a non-secure way which needs to be secure. An obvious example of this is a user login page. See the snippet from web.xml below. This snippet will automatically redirect the browser to HTTPS for any resources in /admin/public/*



Now, however, after the user is logged in I want to switch out of HTTPS and back to regular old HTTP. I tried putting in a new security constraint with transport-guarantee = NONE but this didn't work. Any suggestions?


<a href="http://www.linkedin.com/in/mjremijan" rel="nofollow">
<img src="http://www.linkedin.com/img/webpromo/btn_viewmy_160x25.png" border="0" >
</a>
Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
have look:
link


trying to decode a woman mind....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Switching from HTTPS back to HTTP
 
Similar Threads
Using https
Declarative security
How to change response from Https to Http
Form based login
How to secure my page