• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP and Servelets Difference

 
Pardha Vasamsetty
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi What is the major difference bewteen Servelet and JSP both we can use to build a web page however JSP it is much easier. Whys still we need to use Servelet? Is there any specific reason still Servelets are used?


Thanks in advance,
-Pardha
 
Ajith George
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jsp's are actually rentered as servlets internally by the server internally. So jsp's are just ui friendly servlets , which will help the web designers job easier.

But remember jsp's are view related stuff, only, but occasionally we might need to tackle requests come to web server. I mean any specific checking or process. For that it is better to use servlets itself (as we dont any ui there)

Implementation eg: InterceptorServlet, Filtering servlet etc.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65518
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pardha Vasamsetty:
Is there any specific reason still Servelets are used?

As Ajith George pointed out, JSPs should only be used to compose the views. Perhaps you may find this article helpful.
[ March 10, 2008: Message edited by: Bear Bibeault ]
 
domando
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajith George 's answer is good!!!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!