Re: JSP vs Servlets...

2000-12-21 Thread Ted Husted
On 12/20/2000 at 5:39 PM Rui Oliveira wrote: > can someone tell me which one is best: JSP or [regular] Servlets? All JSPs are actually servlets, and the JSP file is really just another way to Java source. The container (or one of its helpers) compiles them into servlets as needed, and then execu

Re: JSP vs Servlets...

2000-12-20 Thread Dave Smith
Rui, Try the following experiment. Put the source code below into a file called hello.jsp in the /examples/ROOT directory: <%! String hello; %> <% hello = "Hello World"; %> Hello <%=hello%> Access this file by using http://localhost:8080/hello.jsp in your browser. Now look in the tomca

Re: JSP vs Servlets...

2000-12-20 Thread Rui Oliveira
Hello, Joe Laffey wrote: [EMAIL PROTECTED]">On Wed, 20 Dec 2000, Rui Oliveira wrote: can someone tell me which one is best: JSP or Servlets?Is there a reason (beside implementatio reasons) to choose one insteadof the other? Speed... Servlets are faster. They are especially faster if you use

RE: JSP vs Servlets...

2000-12-20 Thread John de la Garza
Ultimately JSP will be compiled to servlets...Use JSP for stuff that requires a lot of text output...formatted output...stuff you would see in a html page. Use servlets to do backend processing to facilitate jsps. Personally I don't ever do any output in my servlets. It's to tedious. Just my o

Re: JSP vs Servlets...

2000-12-20 Thread Joe Laffey
On Wed, 20 Dec 2000, Rui Oliveira wrote: > 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? Speed... Servlets are faster. They are especially faster if you use a ServletOutputStream instead of a Writ

RE: JSP vs Servlets...

2000-12-20 Thread Kitching Simon
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

Re: JSP vs Servlets...

2000-12-20 Thread Neal Dawson - personal account
JSP's are easier to write. You can also have your Web nerds design the pages; then you can plug in your jsp tags. pretty cool. N -- Neal Dawson Office of the Legislative Auditor [EMAIL PROTECTED] --

RE: JSP vs Servlets...

2000-12-20 Thread Kopytkovskiy, Leon
Title: RE: JSP vs Servlets... I would suggest to use both. JSP helps to isolate visual interface (html code) from Middle tier that could be implemented using Servlets. Then Servlets could call your components (JavaBeans) to access email system, database,... The implemetation scheme could be

Re: JSP vs Servlets...

2000-12-20 Thread Steve Ruby
Rui Oliveira wrote: > > 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 There are many reasons why you would want ot use Servlets for business logic and some

Re: JSP vs Servlets...

2000-12-20 Thread Edilmar Alves
I think JSP + Servlet combination is the ideal to really implement a three-tier system like: 1) User interface => HTML+JSP 2) Business logic => Servlet 3) Database => someone I had used only Servlets and my code was strange, with HTML code into Java servlet code, and now I have had migrating all c