• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

one html is not getting constrained

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

first of all some details: I configured security as below in web.xml


in tomcat-user.xml as below:


file are location as below:


contents of form.html:



Now my problem is that the request going to "http://localhost:8080/Beer-v1/web/form.html" is not getting constrained.
when I submit the request from /web/form.html to "http://localhost:8080/Beer-v1/SelectBeer.do" it checks for the authentication and asks for id/password info.

If i disable the security constraints the app works fine.

what is going wrong here?

 
Vineet Kumar Garg
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
found the problem .. the page was getting cached on the client side.
once cleared the cache it asked for id/password and all worked.
More details at : http://stackoverflow.com/questions/11306513/html-resource-not-getting-constrained-in-servlets
 
Ranch Hand
Posts: 343
Mac OS X Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vineet Kumar Garg wrote:found the problem .. the page was getting cached on the client side.
once cleared the cache it asked for id/password and all worked.
More details at : http://stackoverflow.com/questions/11306513/html-resource-not-getting-constrained-in-servlets



@Vineet If you are cross-posting, then let us know in your first post itself.
 
Vineet Kumar Garg
Greenhorn
Posts: 21
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Palak-
I waited for ~one day to get a response before posting the same question to other site.
I'm aware that time is precious so as soon as I got a response and I verified it I updated my thread here as well.

Regards
-Vineet


 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic