aspose file tools*
The moose likes Servlets and the fly likes one html is not getting constrained Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "one html is not getting constrained" Watch "one html is not getting constrained" New topic
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: 313

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.


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


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: one html is not getting constrained