• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Sevlets &JSP

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Let's go to the waterfront with this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic