Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upgrade Tomcat

 
Dan Parsons
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have several Web apps with Forms that update, select and add to an Oracle database. I dont have JSTL or Struts and use MVC for everything I do. Everything works well and I am using Java 1.4.02 with Tomcat 4.1.27 on Windows server.

Now I will be upgrading to Java 5 and Tomcat 5.5 and would like to migrate all my Tomcat 4.1.27 Web apps to Tomcat 5.5 container. Please advise any issues I might have that will cause errors on my Web apps built and compiled under Java 1.4.02? Will they still work in Java 5 and Tomcat 5.5? Do I need to recompile under Java 5??
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No you don't need to recompile.

The only issue that I ran into when migrating from 4 to 5 was with the jsp:getProperty tags.

If a String property in a bean is null, in 4x an empty String will be written to the page. In 5x, the String "null" is written.
 
Dan Parsons
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I assume I will have to create condition for "null" to handle that in Tomcat 5 for my getProperty tags.

Also, on another note I have learned alot from your SimpleTable MVC example that you created with a MockResultSet. It is the best MVC resultset example and helped me create a MVC working with a real Database.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
These day's I use Bear's FrontMan front controller. It saves me a lot of time.

[ January 15, 2008: Message edited by: Ben Souther ]
[ January 15, 2008: Message edited by: Bear Bibeault ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic