Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

security constraint question

 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is from javabeat.net

Which of the following deployment descriptor segments are VALID for security-related configuration of a web application?
Please select two correct answers.


Answer is BE

but how e is correct? . we must have atleast one url pattern?
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now you don't. In E the constraint is just sitting there doing pretty much nothing. But it wont cause any trouble either.
 
Chinmaya Chowdary
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Geeta. <url-pattern> is mandatory under <web-resource-collection>. See SRV.13.4 Deployment Descriptor Diagram.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!