• 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

Advantages of JSP

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Could any of you please explain me that other than separating the presentation logic from business logic,what are the other advantages of JSP over Servlets.JSP can do everything that servlets do..Then when do we go for Servlets and when for JSP and why? This is the most regular question I have come across in interviews.

Could you all please help me out.

Regards,
Nalini.
 
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Servlets:

Servlets are server extensions and provide additional functionalities to the server. It includes implementation of specialized services such as authentication, authorization, db validation and transaction mgmt.

Servlets act as controller components that control the business logic. They are developed by java programmers with strong OO Programming skills.

JSP:

JSP pages are webpages and similar in structure to html pages at design time. Any webpage designer with some basic knowledge of java & jsp tags can write JSP.

U r already familiar with the following key concept
jsp is for visual presentation
servlet is for handling business logic

I hope , it will help u to answer in the interview. all the best
bye for now
sat
 
nalini peddareddy
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Satish...Surely will help me out..
reply
    Bookmark Topic Watch Topic
  • New Topic