JSP 1.2 <-> JSP 2.0
Here's something that I need: A way to convert JSP 1.2 pages to JSP 2.0 pages. Basically, this only really involves changing all the <c:out value="${...}" />
tags to be simply ${...}
. I have a couple motivations for this. The first is that Wrox wants struts-resume and security-example to be written using JSP 2.0 (it is a JSP 2.0 book after all). However, I'm afraid that most developers won't be able to use 2.0 for quite some time, considering that the J2EE 1.4 (with JSP 2.0) won't be released until this summer. So I'd like a way to create a JSP 1.2 version and a JSP 2.0 version of my these applications from the same source code. What would be best - to write the source in JSP 1.2 and then parse it for <c:out />
tags and strip them accordingly? I'd rather write the source in JSP 2.0 and then add in the <c:out />
tags using Ant, since it'd be much simpler. Then again, I've already written a fair amount using JSTL with 1.2. Comments and suggestions are encouraged!
Posted by Måns af Klercker on February 25, 2003 at 11:40 AM MST #
Posted by Laurent Michalkovic on May 18, 2003 at 09:14 AM MDT #