This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Return to HTTP from HTTPS  RSS feed

 
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
 
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
Boost this thread!