From: Chris Jordan <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, June 02, 1999 6:05 PM
Subject: Re: JSP versus servlets
>Printlns in servlets are a terrible way of doing things, worse than
embedded
>html in perl scripts, in my book.
>
Do something like this:
println (
"<html>" +
" <body" +
" <h1>HTML by println<h1>" + ...
);
When you have to mingle html code with java code, there
hardly isn't a difference in maintenance between servlet
and jsp, if done by the same person. In case ASP, there is
difference because ASP is not compiled, and reworking ISAPI
for changing presentation is a pain in the butt. (Been there,
done that). Different story for JSP/Servlet though. Also, when jsp
gets complicated, you end up writing formatting beans anyway,
which is java code just like above.
>Even if your the only person that'll ever need to change the code (which I
>doubt) you'll be kicking yourself when all you have is ftp access and you
>quickly need to change the alignment of a heading.
>
Ok, that could be another case where JSP is useful.
TK.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".