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

Meaning of ? in web.xml DTD

 
Jay DasPurkayastha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all:
Can anyone clarify the meaning of this notion--? used in the specification of many tags in the web.xml DTD? For Example, login-config (auth-method?, realm-name?, form-login-config?)
I know that:
* means optional and 0 or more can be present
+ means mandatory and 1 or more can be present
<nothing> as in web-resource-collection (web-resource-name, ...) means only 1 can be present.
Please correct me if I am wrong in any of the above.
Thanks in Advance,
Jay
 
Aleks Pascoal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
? means 0 ou 1.
Aleks
 
Jay DasPurkayastha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Aleks. Thats very helpful.
 
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!