Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Detail in book on deployment descriptor?

 
Michael Cleary
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best way to know the Deployment descriptor is to read the spec.
 
Jayson Falkner
Author
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Michael Cleary
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joy Jade
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Frank.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic