File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes is it just the convinient way??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "is it just the convinient way???" Watch "is it just the convinient way???" New topic

is it just the convinient way???

neeti ravi

Joined: Mar 18, 2001
Posts: 9
Hi guys
i just want to know the main differnce between servlets and JSPs?
If the Jsps are converted to servlets, why not directly write servlets??
Is there any other reason , than JSPs being more easier to write??
Wating for a response
Thankx in advance
Richard John

Joined: Feb 14, 2001
Posts: 8
Try looking at the posting from Ali Farid on March 13 "Advantage of JSP". Some of these issues have already been raised.
neeti ravi

Joined: Mar 18, 2001
Posts: 9
Thankx Richard.I'll check that out.

Joined: Mar 20, 2001
Posts: 4
JSP defines clearly application programmers and Html art worker responsibilities.
Let us assume that you develop java servlets that tells user saying thankyou(A)
later you want to change that to thankyou very much(B).
if you use servlets in both A and B then you need to compile java code and stop server and uplaod new version of code if you use jsp you don't have to re compile and stop server and upload the program.
Vetri Selvi


Joined: Mar 21, 2001
Posts: 4
Hi Neeti,
If you work with straight Java servlets, you have to deal with HTTP input and HTML output from within Java classes, and you need significant Java experience to build complex applications. With JSP thrown into the mix, you can separate your HTML presentation logic from the more complex business logic embedded in servlets. This means that developers who are experienced with scripting can write the presentation code while more experienced Java developers can focus on solving complex problems in servlets and beans.
JSP can be used with or without Java programming knowledge. In fact, JSP contains a few server-side tags that make it possible to display dynamic data without writing a single line of Java code. You can access beans directly to perform operations and then use JSP tags to display results as dynamic content. You can also use servlets that generate beans which hold results of the servlet operations, and again use JSP tags to display the results without requiring Java coding in the JSP page.
I agree. Here's the link:
subject: is it just the convinient way???
It's not a secret anymore!