jQuery in Action, 2nd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes web.xml  &  server.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "web.xml  &  server.xml" Watch "web.xml  &  server.xml" New topic
Author

web.xml & server.xml

Sam Cala
Ranch Hand

Joined: Jan 03, 2001
Posts: 147
Can anyone throw lights on the purpose of web.xml & server.xml files, I am using Tomcat 4...
Thanks & best wishes,
Sam


Best wishes,
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
To put it short:
server.xml is for server configuration.
web.xml is for configuration per app.
Especially web.xml is important, very important for the exam and for J2EE webcomponents dev. in general. Every app should have one.
In the links page of this forum, you find some graphical representation of the elements of the web.xml.
regards Axel
Anthony Villanueva
Ranch Hand

Joined: Mar 22, 2002
Posts: 1055
The web.xml file is a deployment descriptor. It defines how your web components (servlets, JSPs, HTML files, etc) are organized to form a coherent web application. All Servlet 2.3 compliant webapps must have a web.xml file.
The server.xml is a configuration file for Apache Tomcat and describes how your web applications (or contexts) are deployed onto Tomcat. This is not a J2EE-specific feature. For another web server, for example, (say JRun) the equivalent file is the local.properties file.
-anthony
 
IntelliJ Java IDE
 
subject: web.xml & server.xml
 
Threads others viewed
To change JBoss default port
JNDI
Redirect a URL
problem with tomcat 5.0
Windows Authentication Using Tomcat 5.0
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture