>> 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.

But in many cases they aren't done by the same person!

Also, in many cases the HTML becomes very complex - it's much (much) easier
to design and layout the page using an HTML aware editor, then turn this
into jsp, than it is to turn the HTML into println statements - just going
through and escaping all the quotation marks is a nightmare.

Think about fairly complex HTML, like tables or frames, how much easier is
it to lay this out AND to change it in an editor than to go through the
whole, edit..compile..debug cycle of code,

Kevin

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of TK Sung
Sent: 03 June 1999 17:47
To: [EMAIL PROTECTED]
Subject: Re: JSP versus servlets


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".

===========================================================================
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".

Reply via email to