• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<web-resource-name> problem

 
Harshana Dias
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

We know that under the <web-resource-collection> there is a element called <web-resorce-name>.

Its a mandotory element right? also we can define any name right? But that name newer used know so i feel its not a mandotory element?

Also correct me please if I am wrong..only <web-resource-name> and <url-pattern> are mandotroy elements where <httm-method> and <auth-contraint> are not mandotory right?

Thank You.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
web-resource-name is mandatory. I think it can be used by third party tools, or container management tools to identify the restricted resource. You can give it any name you want.

url-pattern is also mandatory, with one or more element. Both http-method and auth-contraint or not mandatory.

(Servlets Specification, SRV.13.4 Deployment Descriptor Diagram)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic