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

Difference between servlet and jsp?

Ganesan Ramakrishnan
Ranch Hand

Joined: Mar 18, 2008
Posts: 90
Which will be the faster one either servlet or jsp
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

in end ,jsp become servlet is faster...but jsp is precompiled no need to deploy for every changes like servlet...

thanks & regards,
mano ranjan
Ranch Hand

Joined: Jul 12, 2007
Posts: 102
As JSPs are converted in servlets so why we need to go for Jsp rather than using servlets..

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi mono,

All the web designer no need to know java.servlet & jsp are components of web application .

jsp is view purpose(contain maximum of html).servlet is a good controller(contain maximum of java code)..

take an example,
jsp is a batsman,servlet is a bowler..but both are cricket player to win a match

thanks & regards,
Amarender Reddy
Ranch Hand

Joined: May 12, 2005
Posts: 54

With your 93rd post you should be aware that similar quiries were raised a number of times and that a simple search in the ranch would give you ample explanation and better examples

It is sorta covered in the JavaRanch Style Guide.
subject: Difference between servlet and jsp?
It's not a secret anymore!