Friday, September 25, 2015

SERVELETS &JSP



1. What are Servlets?
A small program that runs on a server, the term usually refers to a Java applet that
runs within a Web server environment. This is analogous to a Java applet that runs within a Web browser environment. Java servlets are becoming increasingly popular as an alternative to CGI programs. The biggest difference between the two is that a Java applet is persistent. This means that once it is started, it stays in memory and can fulfil multiple requests. In contrast, a CGI program disappears once it has fulfilled a request. The persistence of Java applets makes them faster because there’s no wasted time in setting up and tearing down the process.

2. Define JSP.
Java Server Pages (JSP) is simple technology used to generate dynamic HTML on the server side.

3. Define Directives.
Directives are JSP elements that provide global information about an entire JSP page.

4. Write down the various attributes for the page directives in JSP.
The page directive defines information that will be globally available for that Java
Server Page,
1. Language
2. Extends
3. Import
4. Session
5. Buffer
6. Content type

5. What is meant by firewall?
A firewall is a piece of network hardware that serves as a secure gateway between an Internal network and the Internet. It protects the internal network from unauthorized access or activity

No comments:

Post a Comment