Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet mapping and security (web.xml)

 
Henrik Krievs
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !

I'm a bit confused about the serlevt mapping (Url part) - and the security-constraint i web.xml.

Why is it - you both specify Url under the servlet mapping and also under security-constraint. Wouldn't it better to have Url specified one place - and referencing this from other places ?

Regards, Henrik/DK
 
Ivan Matmati
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The granularity of your security policy could be different of the servlet-mapping.
For example, you can map a servlet on /servlet/* but apply security only on /servlet/secret.The two are not so connected that you state.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic