Forums Register Login

one html is not getting constrained

+Pie Number of slices to send: Send
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?

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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.
1
+Pie Number of slices to send: Send
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


Grow your own food... or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1013 times.
Similar Threads
login-config not prompting for user id and password
login-config not working
Basic Authentication Does Not Work Properly
Problem with secure connection and Form Based Authentication
Security Form login problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 21:22:07.