• 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

Comparing JSP With Servlet

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am able to state the advanges of using JSP over Servlet. I would like to know what the DISADVANTAGES of using JSP over Servlet are. Need your contribution. Thanks
 
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Servlets and JSP are good at different things. While JSP provides clear division between presentation and content, servlet is good for things that are not purely for content, like processing. Also, servlets is much easier to debug.
 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cameron is right..
jsp is hard to debug because it is very high level, but in terms of programming, it is easier as it could be used by page designers. while servlets are used by developers.
servlet is used to extend the server side functionality as it makes several applications possible. while jsp is supposed to support the interface view. jsp could contain java code also, but it is considered as a bad design if it contains a lot of code.
They are used together in most web applications that are implemented using java.
for more info, return to the following links: http://developer.java.sun.com/developer/onlineTraining/JSPIntro/contents.html
http://java.sun.com/j2ee/blueprints
Regards.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic