• Post Reply Bookmark Topic Watch Topic
  • New Topic

should I upgrade an old servlet?

 
Jason Hocker
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My company has an old servlet. I'm trying to convince them to improve apon it and add extra features. I was wondering though, what version of the servlet specification should I use to develope a prototype?
Our client base is the type that wouldnt upgrade unless we made them, and will complain when they must. I believe we suggest using iplanet 4 with our current servlet. Its released as a servlet that uses a buffered reader to read an html document as a template for the output. Also using an input stream to read from an ini file to get init parameters.
My co-workers have the attitude that its not broken so dont fix it. Will something like this be outdated and wont work soon? Is the other extreme, rewritting with servlet specs 2.3, too new and wont be supported by our client base?
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I adhere to the principal "don't touch it if it's not broken."

There is, however, a sub-principal:
"unless you are being called upon to support it, and it is a horrific example of poor coding, in which case, rewrite that sucker!"

If no one has touched this servlet in 4 years, and it still all works, then don't bother wasting time on a re-write. Being able to read and write to streams will not be going away any time soon. So while the method retrieving init parameters and HTML boiler-plate might be ancient, it's not going to be 'unsupported'.

As for the version of the platform you run the servlet under.. that might be worth testing. I think it's always a good idea to write to the most current spec, ignoring any specs that are still not released. So that would mean servlet 2.3 and Tomcat 4.1.x (if you use that container).

How about, as a test for yourself, trying to run this servlet under Tomcat 4.1.x and see what it does? Would it take only a small amount of re-write to get it working on this platform (possibly not). Is it important to maintain backwards compatibility with iPlanet 4? (ugh, and probably so, given the description of your clients).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!