Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Advantages of JSP  RSS feed

 
nalini peddareddy
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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.
 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks a lot Satish...Surely will help me out..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!