Problem :
(a) One problem encountered when designing web applications is that HTTP is a "stateless" protocol. Describe two general approaches to solve the statelessness problem.
(b) List two methods for each of the following ASP built-in Objects:
(i) Response
(ii) Application
(iii) Server.
(c) Create a Global.asa file that allows you to track the total number of visitors accessing a site.
(d) Refer to the code of a Java Applet as listed below. With the aid of a sketch describe what exactly you would expect to see in the MSDOS window from AppletViewer or on the Java Console from Internet Explorer. Explain your answer.
import java.awt.*;
import java.applet.Applet;
public class Demo extends Applet {
public void paint(Graphics g) {
int n=0;
int x=20;
int y=20;
while (n < 5) {
g.drawLine(x, y, x+100, y);
y = y + 10 ;
n++ ; }
}
}