This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
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

Win a copy of The Software Craftsman this week in the Agile forum!
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

I agree. Here's the link:
subject: Difference between servlet and jsp?