• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sevlets &JSP

 
Yeshwantrao Patil
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I know in Servlets business logic & presention logic combined but not the same in JSP...So may I know still more Differences between Servlets and JSP ?

Thanx in Advance.
 
Santhosh Kumar
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Although under the hood, both boils down to Java code,which will get executed whenever somebody requests it to.

But from users points of view, both are meant for two distinct purposes. If you have lots of java logic and less presentation, use Servlets. In contrary, if you have lots of presentation but less java logic, use jsps. Note that is the basic funda behind these two technologies. However there have been lots of improvement the way Industry is using these two technologies.

In MVC(2) terms, Servlets are used only as controller. Not even for business logic. All and only presentation logic should be there in the Jsps.

Hope this helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!