File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Deployment descriptor question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Deployment descriptor question" Watch "Deployment descriptor question" New topic
Author

Deployment descriptor question

Tontang Bei
Ranch Hand

Joined: Oct 21, 2006
Posts: 130
If I can use this as the heading in the web.xml:
"<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>"

why must I use the heading given below :
"<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
web-app_2_4.xsd"
version="2.4">"
VijayKumar Sivagnanam
Greenhorn

Joined: Dec 25, 2006
Posts: 26
"<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>"


is for Servlet version 2.3 and
"<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
web-app_2_4.xsd"
version="2.4">"


is for Servlet version 2.4. If you are using 2.4 compliant server, go for the latter else former.


SCJP 1.2 <br />SCWCD (94%)<br />SCBCD (preparing)
Manikandan Jayaraman
Ranch Hand

Joined: Sep 15, 2004
Posts: 225
Also addig to this ...

I think EL is enabled by default in 2.4, but I had to explicitly in my JSP pages when we use 2.3.

Be the latest It is good


Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
 
 
subject: Deployment descriptor question
 
Similar Threads
JSP values not being generated
Scripting Invalid and EL Ignored elements not working?
Error in deploying web application
doubt in EL
HFS first exercise