What i think they're trying to point out is that its a good idea to
separate the programming logic from the formatting of the page. Try
keeping all your programming logic in the Servlet and all your
formatting of the data(HTML) in the JSP. Essentially if your a Servlet
developer try staying away from outputting HTML tags in you Servlet
code. Let the HTML in the JSP take care of the formatting(not your
Servlet).
This is generally good 'style'. It makes for easy changes in the
formatting of your data without having to recompile anything.

Andy

Art Technology Group
101 Huntington Ave 22nd Flr
Boston MA, 02199
http://www.atg.com

Sigurp�ll J�hannsson wrote:
>
> Hi
> I am writing an e-commerce project and I am trying to get some information
> about interaction between Servlet and Jsp.
> Somebody told me that I should do the business logic and let JSP and Servlet
> do the presentation. But what is the difference??? Maybe I am  stupid but
> read chapter 2 in Java Servlet Programming by Jason Hunter(great book by the
> way) and it seems to me that JSP and Servlet are doing the same thing. Can
> somebody point out to me any web-sites that expalin these things.
>
> Many thanks if somebody can help me.
>
> Palli
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to