Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in a Question  RSS feed

 
Elton Kuzniewski
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A Testquiz question give me:



I'm with a doubt here, because I don't think that letter B is a right answer here.
If I well remember, for web resouce declaration, just the URL Pattern and web resource name are needed. Others descriptors are optional.
Am I wrong?
 
Jonathan Elkharrat
Ranch Hand
Posts: 170
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the container must know the URL affected by this constraint and for which methods.
when not defining methods you, in fact, implicitly specify all methods.

the web resource name is also mandatory but it's only for tools
so it doesn't really count. (i wonder why it's mandatory? )
 
Harvinder Thakur
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Same question was posted earlier. Please search for it.
The correct options are A and E because without setting up authentication mechanism using <login-config> you won't be able to use the authorization part.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!