Mickey said:
We maintain our Web sites using Microsoft FrontPage. We are thinking of
adding some JSP code to the HTML pages, but people have told us that
FrontPage messes up JSP code or can't display the JSP portions on the Page
Preview. Is this correct? If so, do other Web site programs do a better
job?
FrontPage trashes even some plain HTML. For instance, we have some
crusty old pages that were generated once upon a time with the help of
some version of Sun's applet converter. The output contains HTML
intended to work with both IE and Netscape 4, which was an interesting
trick. One day the boss called me in to ask why it wasn't working any
more. It seems he had edited it with FrontPage....
I have never actually tried to use FrontPage on a JSP, but I am
confident that if the JSP contains any scriptlet code whatever then
either FrontPage will barf on it or FrontPage will trash it. Same thing
for any JSP directives. EL expressions might or might not make it
through. Standard and custom actions might be OK, but more likely would
be stripped.
Even if FrontPage could be counted on to not trash the page, I would
still ask why you wanted to use it for such a task. FrontPage's main
selling point is WYSIWYG web authoring, but that cannot possibly work
with JSP because a JSP is dynamically executed on the server to produce
HTML (or other output). FrontPage, or any other web authoring tool, can
be used to produce mockups and prototypes from which to build your JSPs,
but for the actual coding and maintenance your best bets are any of the
several text editors that offer context highlighting for JSP code.
The same holds true for PHP code, server-side includes by whatever
mechanism the server in question supports them, and anything else that
is executed on the server. The client can't render it in a WYSIWYG
manner because it runs _on_the_server_ at request time.
JSP is even more so that way. You can't just "add some JSP code to the
HTML pages": you must first convert the HTML pages into JSPs. That is
absolutely trivial, but it implies running them thereafter via a JSP
container instead of serving them directly from your web server
software. The web server and JSP container can be connected so that
they appear seamless, but that requires a bit of configuration.
John Bollinger
(e-mail address removed)