This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Welcome Jayson & Kevin! How much time does the book devote to the deployment descriptor? Some books barely mention it, while others go into extreme detail. The book Core Servlets & Java Server Pages, 2nd Edition devotes barely a page to it, and defers discussion to Volume 2 of the book which isn't even out yet! I'm very new to servlets and am not sure just how important the deployment descriptor is, although it seems as if you could do a lot with it. Thanks, Mike
Mike<br />SCJP 1.4<br />----------------------------<br />firstname.lastname@example.org<br />----------------------------<br />There are 10 types of people<br />in the world. Those that <br />understand binary, and those<br />that don't.
Hi Michael, The book gives good coverage to the deployment descriptor. It is introduced in the first chapter (setting up Java/Tomcat) and throughout the book whe entire web.xml file is described in related sections, e.g. servlet mapping/servlet init parameters/environment variables in the Servlet chapter, mapping JSP/JSP initial parameters/JSP Configuration is covered in JSP chapter, error pages and exception handling elements are covered in the logging chapter, filter mapping and filter initial parameters are covered in the filter chapter, security-related elements are covered in the security chapter, etc.... We literally try to cover everything you can do with the deployment descriptor, but of course we try to pay the most attention to the parts of it that you will likely find most helpful. [ January 28, 2004: Message edited by: Jayson Falkner ]
Jayson Falkner<br />email@example.com<br />Author of <a href="http://www.jspbook.com" target="_blank" rel="nofollow">Servlets and JavaServer Pages; the J2EE Web Tier</a>
"The book gives good coverage to the deployment descriptor. It is introduced in the first chapter (setting up Java/Tomcat) " -Jayson Falkner Hi Jayson, Just wondering, how come you only like to give examples on Tomcat? How about example on Resin?
Justine Jade wrote: Just wondering, how come you only like to give examples on Tomcat? How about example on Resin? I would imagine that the point of a book such as this is to focus on the standards that all servlet container vendors should stick to. Deployment descriptors are an important part of the servlet API specification, and should be equally supported on all compliant containers. Tomcat is the reference implementation, so it makes sense to discuss such things in the context of Tomcat. You should find that the examples work just as well on Resin.