Thursday, October 11, 2012

Advantage and disadvantage of servlet

Servlet Advantage
  • Servlets provide a way to generate dynamic documents that is both easier to write and faster to run.
  • provide all the powerful features of JAVA, such as Exception handling and garbage collection.
  • Servlet enables easy portability across Web Servers.
  • Servlet can communicate with different servlet and servers.
  • Since all web applications are stateless protocol, servlet uses its own API to maintain  session
Servlet Disadvantage
  • Designing in servlet is difficult and slows down the application.
  • Writing complex business logic makes the application difficult to understand.
  • You need a Java Runtime Environment on the server to run servlets. CGI is a completely language independent protocol, so you can write CGIs in whatever languages you have available (including Java if you want to).

0 comments:

Post a Comment