This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Servlets and the fly likes Backward compatibility Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Backward compatibility" Watch "Backward compatibility" New topic

Backward compatibility

Ulvi Cetin
Ranch Hand

Joined: Mar 03, 2003
Posts: 39
Is the Servlet/JSP APIs 2.4/2.0 are backward compatible with the versions 2.3/1.2?

I am planning to upgrade Tomcat from 4.1 to 5.5. I have a variety of virtual hosts running on this server. I wouldn't want to have some incompatibility issues after I install the server and migrate them. Thanks.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The only issue I ran into, when migrating from Tomcat 4x to Tomcat 5x, was the value printed when using <jsp:getProperty .../> tags. In 4x, if a property was null, the tag would print an empty string. In 5x it prints the literal 'null'. I've seen some other people, who were trying to use non-bean objects with the useBean tag, complain about the JSPs not compiling.

For the most part, if you've written your app to the specs, the migration should be painless.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63026

And, if for whatever reason, the template text ${ appears on your pages, that would cause a problem since that sequence now introduces an EL expression.
[ January 25, 2005: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
wood burning stoves
subject: Backward compatibility
jQuery in Action, 3rd edition