aspose file tools*
The moose likes Servlets and the fly likes Return to HTTP from HTTPS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Return to HTTP from HTTPS" Watch "Return to HTTP from HTTPS" New topic
Author

Return to HTTP from HTTPS

Salvo Montalbano
Greenhorn

Joined: Sep 22, 2011
Posts: 11
Hi all,

in my web.xml I declared a resource under the block
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
This resource is about a login page.
But when I logout or when I visit some pages like Contacts or Home Page, I wouldn't use HTTPS protocol
At the moment, HTTPS remain in the url even if I declared this protocol only for that resource
This is my (little) web.xml


Does anybody can help me to solve this problem?
Hoping my explanation is clear, thank you in advance for you replies.

SM
Salvo Montalbano
Greenhorn

Joined: Sep 22, 2011
Posts: 11
I think I solved my problem and I post my solution might be useful in future to another newbie (like me )
I'm also interested to learn other ways to reach my scope.
I put this filter declaration in web.xml


I also write this class:



In this way when i go to logout I make some string operations (that edit protocol and port) and perform a redirect to the home page.
Regards

SM
Dave Alexander
Greenhorn

Joined: Jan 30, 2014
Posts: 8
This is so amazing!!!
Finally I found it!!!
Thanks!!! ;)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Return to HTTP from HTTPS