| Author |
one html is not getting constrained
|
Vineet Kumar Garg
Greenhorn
Joined: Apr 11, 2012
Posts: 21
|
|
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
Joined: Apr 11, 2012
Posts: 21
|
|
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
|
 |
Palak Mathur
Ranch Hand
Joined: Jan 29, 2007
Posts: 303
|
|
@Vineet If you are cross-posting, then let us know in your first post itself.
|
Palak Mathur | My Blog | TechJaunt | What is JavaRanch? | List of All FAQs
|
 |
Vineet Kumar Garg
Greenhorn
Joined: Apr 11, 2012
Posts: 21
|
|
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
|
 |
 |
|
|
subject: one html is not getting constrained
|
|
|