This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between servlet and jsp?

 
Ganesan Ramakrishnan
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which will be the faster one either servlet or jsp
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
in end ,jsp become servlet...so servlet is faster...but jsp is precompiled page...so no need to deploy for every changes like servlet...

thanks & regards,
seetharaman.v
 
mano ranjan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
As JSPs are converted in servlets so why we need to go for Jsp rather than using servlets..

thanks
mano
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
seetharaman
 
Amarender Reddy
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mano,

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

-Amar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic