• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what is the different between jsp and sevlet

 
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the different between jsp and sevlet?
i mean wh ywe use jsp than servlet?
 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

aruna sameera wrote:what is the different between jsp and sevlet?
i mean wh ywe use jsp than servlet?



Basically both Jsp and servlet are same. As JSP is translated into servlet.
JSP is mainly used for your presentation part, means your GUI part, and servlet is used for your controller part or business logic part.
 
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSP was created to give better control for the web designers, because, primarily it would be them who designs the UI. The servlet being a Java object requires the web designer guy to have knowledge of both java as well as other web stuff to code it properly.
With JSP, it is more of web stuff [like html, javascript, css etc], and little bits and pieces of java code [which probably the web designer can live with !].

Anyhow, this JSP, on first invocation will be translated to a servlet java file, and then compiled to a java class by the webserver, transparent to the user.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic