Monday 7 June 2010

Introduction to Servlets

There are two types of Web Resource programs:

1. Static Web resource Programs:
    It generates static web pages. Ex: html pages
2. Dynamic Web resource programs:
    It generates dynamic web pages.
    Ex:
    Servlet programs
    JSP programs
   ASP.net
   Etc.,


What is Web Application?
A Web application is a collection of web resource programs.

img file, java script file can not generate web pages directly but they act as helper programs to another web resource programs.

Web Application is a collection of static, dynamic and helper (Ex: image files) programs.



To Execute Java Apps we need JRE+JVM
To execute Applet programs we need Applet viewer
To execute Servlet programs we need Servlet Container or Web Container. Web Servers (Ex: Tomcat, WebLogic) supplies this Servlet, JSP containers.


Servlet Features:

Better performance: because it creates a thread for each request not process.
Portability: because it uses java language.
Robust: Servlets are managed by JVM so we don't need to worry about memory leak, garbage collection etc.
Secure: because it uses java language..


You may like the following posts:

No comments:

Post a Comment