• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

web.xml & server.xml

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone throw lights on the purpose of web.xml & server.xml files, I am using Tomcat 4...
Thanks & best wishes,
Sam
 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic