Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ssi and servlet chaining using tomcat 4

 
Michelle Lee
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
I am new both in javaranch and servlet/jsp area.
I am reading "java servlet programming" now.
I am wondering if tomcat supports ssi(server side include) and chaining. How can I run it? where I can find information?
Any help will be very appreciated.
Mei Xiao
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mei,
is it possible that you read an old version of that book??? It sounds like. If its 1. edition its outdated. It was quite a good book, but many things changed.
As far as I know servlet-chaining is replaced by RequestDispatcher.
Axel
 
Michelle Lee
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi janssen:
Thank you for your help!
I did read version 1, which I borrowed from the liberary. Maybe I need to buy a new one.
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mei Xiao,
They say it is a very good book, but from a exam standpoint of view it does not cover JSP and exam-takers recently told that there are lots of JSP questions in the exam.
Best books for exam-preparations are:
- Mayority says: Books of Marty Hall. He recently published a new version covering the Servlet 2.3, JSP 1.2 specs. You can get all chapters of the old version as free pdf: http://pdf.coreservlets.com/
This old version covers Servlet 2.2 and JSP 1.1. It is much less outdated than Jason Hunter edition 1.
- I use Wrox JSP2 Professional ed. I like it very much, because its less api and more introducing/solidifying you in a "how-to-design" OO point of view.
Axel
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mei,
I also tried a lot when studying that book (1st edition) and came to a decision that Java Web Server was supporting that SSI/Servlet chaining and currently not supported by Tomcat. Probabaly some packages r to be downloaded or something like this. U can check servlets.com, o'reilly.com or javaworld.com by searching for "Jason Hunter".
Does the 2nd edition also included those codes? I m yet fond of the 2nd edition that's the best book for any servlet programmer on earth...
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chaining is what people did before filters and request dispatcher. Java Web Server was replaced about 2 years ago when Sun gave all the code to the Apache organization for Tomcat. Tomcat has been the official "reference implementation" for quite a while.
Bill
 
Michelle Lee
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for all your reply. I am clear now.
But I cannot even make getInitParameter() work,
when tried the example in Jason's book. Could u tell me what's the reason?
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mei,
Only coding is not enough for getInitParameter() to work. Realize what sort of init? Here the initialization parameter for this particular servlet is subject to get from a deployment descriptor (/WEB-INF/web.xml) where there will be a servlet element with init-param sub-element with the appropriate name-vale pair written their earlier to wrok....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic