Hi,

If you want to generate lots of HTML, with a little bit of java logic code,
then use jsp, and embed your java logic "in-line".

If you want to do lots of logic/computation, then generate a small amount
of html output, you may wish to use servlets only, and use "print"
statements to create the html.

If you want to do significant amounts of processing, *and* generate
a significant amount of HTML, then you should use both - servlets
for the logic, which then forward to jsps to generate the html. And
if your webapp (web site) gets to more than a dozen or so pages, 
you should look at something like Struts or Turbine, which *uses* 
both servlets and jsp, but adds features to simplify processing of
forms, navigation between pages, database access, etc.

Cheers,

Simon

> -----Original Message-----
> From: Rui Oliveira [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, December 20, 2000 6:40 PM
> To:   [EMAIL PROTECTED]
> Subject:      JSP vs Servlets...
> 
> Hello,
> 
> can someone tell me which one is best: JSP or Servlets?
> 
> Is there a reason (beside implementatio reasons) to choose one instead
> of the other?
> 
> 
> Thx in advance
> Rui

Reply via email to