This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes web.xml mandatory tags Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "web.xml mandatory tags" Watch "web.xml mandatory tags" New topic
Author

web.xml mandatory tags

Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
How to know the mandatory tags in web.xml.

Example
<security-constraint> should contain atleast one <web-resource-collection>

In this way How would I know all mandator tags. Can some please help me my exam is very near.
[ August 18, 2008: Message edited by: Chintu sirivennela ]

SCJP 5 |SCWCD 5| Started thinking about Web Services ?
Maurizio Nagni
Ranch Hand

Joined: May 29, 2004
Posts: 75
There is no secret: preapare a clean, extensive, well indented web.xml template and..... try to memorize it.
good luck
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

If you know how to read XSD, then you should be able to know which elements are mandatory, optional, etc.

For web.xml, you can refer to this.
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Originally posted by Chintu sirivennela:
How would I know all mandator tags. Can some please help me my exam is very near.


work on web.xml with some IDE like NetBeans
Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
Thanks to all of you.
Originally posted by Freddy Wong:
If you know how to read XSD,

I don't know how to read XSD..I am planning to practice my own way..
Actually I thougt somewhere I can find the mandatory tags but No problem I will work on this.
[ August 19, 2008: Message edited by: Chintu sirivennela ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web.xml mandatory tags
 
Similar Threads
Doubts in mocks
taglib descriptor
default value of body-content tag
Servlet Registration in web.xml??
Meaning of ? in web.xml DTD