See the URL for a Tcl script that I wrote to help us with a lot of our
migration of JSP 0.92 to JSP 1.0.  It handles multi-line tags pretty
well, but does nothing with <LOOP> tags except flag them.  It also
attempts to correct scriptlets that did not have terminating semicolons
(something you could get away with in the JRun version of JSP 0.9x).

    http://millibits.com/djh/tcl/jsp2jsp.tcl.txt

It will run happily in Tcl 8.0 and newer, tested on Solaris, but should
run happily on Win32 platforms.  You can download Tcl binaries & source
from http://dev.scriptics.com/

Save the script as jsp2jsp.tcl and on Unix, make it executable.  Then
just call it with a single filename:

    jsp2jsp.tcl my/original/file.jsp

It will save a copy of the original as my/original/file.jsp.orig and
then create a converted version.  Runs happily in a loop with the
bourne/bash/ksh for command:

    for f in `find . -name '*.jsp' -print`; do
        jsp2jsp.tcl $f
    done

which converted our whole site in a matter of about 2 minutes, plus some
manual correction of LOOP tags etc.

                        -=- D. J.

Govind Seshadri wrote:
> Interested in learning about how to seamlessly convert your
> "legacy" JSP 0.92 files over to JSP 1.1?
>
> Check out our latest FAQ entry for complete details:
> http://www.jguru.com/jguru/faq/view.jsp?EID=32255

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to