aspose file tools*
The moose likes JSP and the fly likes Upgrade from JSP 1.2 to JSP 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Upgrade from JSP 1.2 to JSP 2.0" Watch "Upgrade from JSP 1.2 to JSP 2.0" New topic
Author

Upgrade from JSP 1.2 to JSP 2.0

Harsha Huddar
Greenhorn

Joined: Oct 03, 2003
Posts: 23
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

Joined: May 07, 2001
Posts: 57
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!


Jayson Falkner<br />jayson@jspinsider.com<br />Author of <a href="http://www.jspbook.com" target="_blank" rel="nofollow">Servlets and JavaServer Pages; the J2EE Web Tier</a>
Harsha Huddar
Greenhorn

Joined: Oct 03, 2003
Posts: 23
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

Joined: May 10, 2000
Posts: 1913
    
    6
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

Joined: Jan 11, 2001
Posts: 96
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

Joined: Oct 12, 2000
Posts: 5093
That was the preferred syntax all along, guess they at last got around to enforcing it


42
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
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 ]

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
Ditto that - sounds like a bug.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Upgrade from JSP 1.2 to JSP 2.0