wood burning stoves*
The moose likes Servlets and the fly likes Detail in book on deployment descriptor? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Detail in book on deployment descriptor?" Watch "Detail in book on deployment descriptor?" New topic
Author

Detail in book on deployment descriptor?

Michael Cleary
Ranch Hand

Joined: Jul 29, 2003
Posts: 93
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 />mdcleary@earthlink.net<br />----------------------------<br />There are 10 types of people<br />in the world. Those that <br />understand binary, and those<br />that don't.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

The best way to know the Deployment descriptor is to read the spec.


Groovy
Jayson Falkner
Author
Ranch Hand

Joined: May 07, 2001
Posts: 57
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 />jayson@jspinsider.com<br />Author of <a href="http://www.jspbook.com" target="_blank" rel="nofollow">Servlets and JavaServer Pages; the J2EE Web Tier</a>
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Michael, the book "More Servlets and JavaServer Pages" devotes the entire chapter 5 to the deployment descriptor. Several other chapter inb the book also touch on it too.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Michael Cleary
Ranch Hand

Joined: Jul 29, 2003
Posts: 93
Thanks all!
Jayson, the approach you take in the book sounds really good, expecially to a servlet newbie like me.
Thanks again,
Mike
Joy Jade
Ranch Hand

Joined: Dec 30, 2003
Posts: 81
"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?
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
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.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Joy Jade
Ranch Hand

Joined: Dec 30, 2003
Posts: 81
Thanks, Frank.
 
GeeCON Prague 2014
 
subject: Detail in book on deployment descriptor?