Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Return to HTTP from HTTPS

 
Salvo Montalbano
Greenhorn
Posts: 11
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is so amazing!!!
Finally I found it!!!
Thanks!!! ;)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic