Two Laptop Bag
The moose likes Servlets and the fly likes Differenct between Servlet ans JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Differenct between Servlet ans JSP?" Watch "Differenct between Servlet ans JSP?" New topic
Author

Differenct between Servlet ans JSP?

Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105
Hi everyone,

I want to know the difference between servlet and jsp.. I expect more and effective points from all.

Thanks in advance.


Wake up! Don't let your smile be snatched away by anybody!
Regards, Eswar
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

What do you think servlets and jsp are ? Did you SearchFirst ?


[My Blog]
All roads lead to JavaRanch
Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105
Servlet and jsp are used to develop web application (dynamic web pages).
But which one is best for develop application.(easy and powerful)
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

Hers is a bit of history.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3670

Eswara Moorthy Nec wrote:Servlet and jsp are used to develop web application (dynamic web pages). But which one is best for develop application.(easy and powerful)

They are used for different purposes these days, JSPs for view part (front end of the application) and the Servlets for controll logic.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105
Christophe Verré wrote:Hers is a bit of history.


Thanks for your nice reply. I expect this kind of explanation.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56190
    
  13

Eswara Moorthy Nec wrote:I expect this kind of explanation.



[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 503

In simple worrds, HTML code inside Java is Servlets and Java Code inside HTML is JSP..


Regards, Prasad
SCJP 5 (93%)
Elchin Asgarli
Ranch Hand

Joined: Mar 08, 2010
Posts: 222

http://en.wikipedia.org/wiki/Servlet
http://en.wikipedia.org/wiki/JavaServer_Pages


Personal page, SCJP 6 with 91%, SCWCD 5 with 84%, OCMJD
Ian Stanford
Greenhorn

Joined: Jul 09, 2010
Posts: 4
Servlets and JSP's are complementary. A servlet is a Java class that extends javax.servlet.Servlet. A JSP is actually compiled into a Servlet when the page is run. There are advatages and disadvantages of both of these API's and web applications tend to contain a mixture of the two. Hope this helps.

Regards

Ian Stanford
http://www.ian-stanford.co.uk/blog
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3670

Welcome to JavaRanch, Ian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Differenct between Servlet ans JSP?
 
Similar Threads
comparison between JSP and Servlet
differeance between jsp and servlet
JSP to Servlet pasing values
jsp
jsp vs servlet