This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes web.xml template - very important for exam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "web.xml template - very important for exam" Watch "web.xml template - very important for exam" New topic
Author

web.xml template - very important for exam

Srinivasan Rengan
Ranch Hand

Joined: Nov 07, 2004
Posts: 122
Friends,
What i have given beneath is a sample of web.xml containing the elements in a proper order (I guess )..Can some one help me in inserting the other required elements appearing in the order, especially the taglib based elements.

Thanx in advance
Srini





Filters
--------------------------------

<filter>
<filter-name></filter-name>
<filter-class></filter-class>
<init-param>
<param-name></param-name>
<param-value></param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name></filter-name>
<url-pattern></url-pattern >
<dispatcher></dispatcher>
</filter-mapping>

Listeners
------------------------------------
<listener>
<listener-class></listener-class>
</listener>


Servlets
--------------------------------------
<servlet>
<servlet-name></servlet-name>
<servlet-class></servlet-class>
<filter-name></filter-name>
<init-param>
<param-name></param-name>
<param-value></param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name></servlet-name>
<url-pattern></url-pattern >
</servlet-mapping>





JSP
---------------------------
<servlet>
<servlet-name></servlet-name>
<jsp-file></jsp-file>
<init-param>
<param-name></param-name>
<param-value></param-value>
</init-param>
<load-on-startup></load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name></servlet-name>
<url-pattern></url-pattern>
</servlet-mapping>

jsp-config
--------------------------
<jsp-config>
<jsp-property-group>
<url-pattern></url-pattern>
<scripting-invalid></scripting-invalid>
<el-ignored></el-ignored>
</jsp-property-group>
</jsp-config>

Session
------------------------------------------
<session-config>
<session-timeout></session-timeout>
</session-config>

Error page
------------------------------------------------

<error-page>
<error-code></error-code>
<location></location>
</error-page>

<error-page>
<exception-type></ exception-type f>
<location></location>
</error-page>

Taglib
-----------------------------------------------
<taglib>
<taglib-uri></taglib-uri>
<taglib-location></taglib-location>
</taglib>


SCJP, SCWCD, SCBCD (EJB 2.x and EJB 3), OCA, SCDJWS
Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
You can download the spec from sun site and have a look at complete list of tags that are part of web.xml dtd. It is availale under Deployment Descriptor section with diagrams neatly.


Rizwan
SCJA, SCJP, SCWCD, SCBCD, SCDJWS.
Srinivasan Rengan
Ranch Hand

Joined: Nov 07, 2004
Posts: 122
Hey Rizwan,
Thanks a lot...
can you please help me with the link.

Srini
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Hi,

could it be this link :

Java 2 Platform, Enterprise Edition (J2EE) : XML Schemas for J2EE Deployment Descriptors

Regards,
Darya


SCJP, SCJD, SCWCD, SCBCD
Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
Servlet Spefication you can download from this link.
Servlet Specification
You can read deployment descriptor section in that. It is explained neatly with the help of diagrams.
Also xsd, pointed by Akbar is also there. But understaning xsd may be difficult to someone..
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Hi,

I absolute agree with you on XSD . How about the following :






















Hope you enjoy .

Regards,
Darya
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
... and the conventions :



Regards,
Darya
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Hi,

you can find the same for the Tag Library Descriptor in thread TLD XML template - very important for exam

That should cover now all of XML we may find in the exam .

Regards,
Darya
Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
Thanks for pasting Akbari. By the way... when are you planning to write SCWJD? Are your from India by any chance?
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Hi Rizwan,

I have my exam tomorrow . I'm german (and part iranian).

Regards from Germany,
Darya
Srinivasan Rengan
Ranch Hand

Joined: Nov 07, 2004
Posts: 122
Hey Darya,
All the very best for your exam.
I wish you all the very best!!
Srini
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Hi Srini,

thanks for the well wishes .

Regards,
Darya
Srinivasan Rengan
Ranch Hand

Joined: Nov 07, 2004
Posts: 122
pls keep me informed about your score!
All the best!
srini
Nicky Eng
Ranch Hand

Joined: Mar 26, 2005
Posts: 378
thanks for the info, and good luck on the exam...


From NickyEng
Diploma in Computer Studies
SCJP 1.4
SCWCD 1.4
Formula 1 app by Maxis (Playbook)
Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
All the best Akbari.
Post your experiences and score once you are done.
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Hi Rizwan,

One thing I really recommend is to take your time and do as much mock exams as possible.

The style HFSJ uses is very near to the real exam. But I also like the free mock exams at http://www.jdiscuss.com which are also very similar to the real exam.

And while I talk in this thread about the real exam I also like to add that the idea for a complete Deployment Descriptor template with which Srinivasan came up is really very important. You can answer a lot of questions in the real exam once you have memorized it. Same is valid for the sister thread TLD XML template - very important for exam

Good Luck ,
Darya
Srinivasan Rengan
Ranch Hand

Joined: Nov 07, 2004
Posts: 122
Hey Darya,
First of all, Congrats.
I am taking up the exam on 30 th september.
So, any last patch suggestions, you would like share, that can prove to be useful at this point.
Also, I am not able to see the contents of the link 'TLD XML template - very important for exam'. The images are not loaded properly for me.
Can you please mention the same in text format.

Thanks!
Many congratulations once again!
Srini
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Thanks Srini , good luck for your exam.

Well, the suggestion I can give you is that the XML images for DD and TLD (see this thread and my thread) are very worth to memorize. Else than HFSJ I suggest to do a number of mock exams from http://www.jdiscuss.com.

If you have problems with your browser to view the threads you can download both XML's here for TLD and DD

Regards,
Darya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web.xml template - very important for exam
 
Similar Threads
web.xml
error occured while deploying JSF portlet in Jboss Portal server
JSTL not working on tomcat 4.1.18
Sample web.xml.. may be useful for SCWCD Ranchers
moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files