• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upgrade from JSP 1.2 to JSP 2.0

 
Harsha Huddar
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have my web app running on Tomcat 4.0.3 which implements Servlet 2.3 & JSP 1.2 spec. I need to upgrade to Tomcat 5.0.18 which implements Servlet 2.4 & JSP 2.0 spec.
What could be the issues i would have to deal with? Is there any document listing the same?
 
Jayson Falkner
Author
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming your web application doesn't use any of the Tomcat 4.x API -- i.e. it only uses what is defined in the JSP/Servlet specs -- your task should be as simple as installing Tomcat 5 and dropping in your old web application. The specifications attempt to be completely backward compatible.
Try it!
 
Harsha Huddar
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jayson.But I read from the spec that the way we implement custom tags is a little different in JSP 2.0 Guess those wont be backward compatible and would need a little change.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The tags stuff is backwards compatible - it's just that JSP 2.0 adds some new techniques for building tags. Last time I looked *almost* everything ran as expected. Give it a go and let us know how you get on.
 
jack nick
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have had a similar situation to updgrate to tomcat 5 and yes the way tags works are quite diferent... one thing that def did not work for me is the usage of a tag for instance

<jsp:forward page="login.jsp">
</jsp:forward>
with nothing between the start and end tags had to be be changed to
<jsp:forward page="login.jsp"/>

jack
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was the preferred syntax all along, guess they at last got around to enforcing it
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't believe that any system should "enforce" this behaviour. In XML the two forms are defined as being equivalent.
This is especially worrying, as this tag is allowed to take nested parameters:

If the container "enforces" the abbreviated syntax, how is this supposed to work?
If a container won't allow both types of syntax, it sounds like a bug to me.
grr. darn smilies
[ February 02, 2004: Message edited by: Frank Carver ]
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ditto that - sounds like a bug.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic