• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web.xml template - very important for exam

 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Rizwan,
Thanks a lot...
can you please help me with the link.

Srini
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

could it be this link :

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

Regards,
Darya
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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






















Hope you enjoy .

Regards,
Darya
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... and the conventions :



Regards,
Darya
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rizwan,

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

Regards from Germany,
Darya
 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Darya,
All the very best for your exam.
I wish you all the very best!!
Srini
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Srini,

thanks for the well wishes .

Regards,
Darya
 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pls keep me informed about your score!
All the best!
srini
 
Nicky Eng
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the info, and good luck on the exam...
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All the best Akbari.
Post your experiences and score once you are done.
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic