Forums Register Login

web.xml template - very important for exam

+Pie Number of slices to send: Send
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>
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Hey Rizwan,
Thanks a lot...
can you please help me with the link.

Srini
+Pie Number of slices to send: Send
Hi,

could it be this link :

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

Regards,
Darya
+Pie Number of slices to send: Send
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..
+Pie Number of slices to send: Send
Hi,

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






















Hope you enjoy .

Regards,
Darya
+Pie Number of slices to send: Send
... and the conventions :



Regards,
Darya
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Thanks for pasting Akbari. By the way... when are you planning to write SCWJD? Are your from India by any chance?
+Pie Number of slices to send: Send
Hi Rizwan,

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

Regards from Germany,
Darya
+Pie Number of slices to send: Send
Hey Darya,
All the very best for your exam.
I wish you all the very best!!
Srini
+Pie Number of slices to send: Send
Hi Srini,

thanks for the well wishes .

Regards,
Darya
+Pie Number of slices to send: Send
pls keep me informed about your score!
All the best!
srini
+Pie Number of slices to send: Send
thanks for the info, and good luck on the exam...
+Pie Number of slices to send: Send
All the best Akbari.
Post your experiences and score once you are done.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
Here. Have a potato. I grew it in my armpit. And from my other armpit, this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1776 times.
Similar Threads
Sample web.xml.. may be useful for SCWCD Ranchers
error occured while deploying JSF portlet in Jboss Portal server
web.xml
moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files
JSTL not working on tomcat 4.1.18
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:19:23.