This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes web.xml hard work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "web.xml hard work" Watch "web.xml hard work" New topic

web.xml hard work

Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
Hi Ranchers I wrote web.xml without seeing any where just look at it , tell me if any mistakes are there.

Thanks Micheal John, form you only I learned how to write web.xml.

<web-app ....>


<description>web application description</description>

<display-name> Web apllication </display-name>


<ejb-ref-name>ejb local</ejb-ref-name>

<ejb-ref-name>ejb reference</ejb-ref-name>

<env-entry-name>EJB Data source Name</env-entry-name>


<-- or

<filter-name>Comprestion Filter</filter-name>

<filter-name>Comprestion Filter</filter-name>
<-- or
<-- or



<realm-name>LADAP REALM<realm-name>
<-- OR



<resource-env-ref-name>some jms resource</resource-env-ref-name>

<resource-ref-name>EJB Reource name</resource-ref-name>


<web-resource-name>my web resource</web-resource-name>


<-- or



<-- or


<run-as>don't know what to write</run-as>






tell me if any mistakes are there or need to add any tags in this...
please tommorow is my exam ...
[ August 20, 2008: Message edited by: Chintu sirivennela ]

SCJP 5 |SCWCD 5| Started thinking about Web Services ?
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902

The best way to check out whether your xml file is correct (well formed and valid) is to have any IDE like, Netbeans or eclipse, copy paste t your code with DTD definition and he ll tell you whether you wrote correct xml or not !

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sunny Jain
Ranch Hand

Joined: Jul 23, 2007
Posts: 433

I think there are two mistakes:

2) <taglib> should be outside <jsp-config>. I am not very much sure about this point, as i never heard of taglib inside jsp-config. so it should be outside.

[ August 21, 2008: Message edited by: Sunny Jain ]
[ August 21, 2008: Message edited by: Sunny Jain ]

Thanks and Regards,
SCJP 1.5 (90%), SCWCD 1.5 (85%), The Jovial Java, java.util.concurrent tutorial
I agree. Here's the link:
subject: web.xml hard work