wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Backward compatibility" Watch "Backward compatibility" New topic
Author

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
Sheriff

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
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Backward compatibility
 
Similar Threads
Non-Alphanumeric Characters in a String
DOS command line characters limit
Scrolable ResultSet
disable the browser backward button in jboss server
Threading issues in servlet