Академический Документы
Профессиональный Документы
Культура Документы
web server.
• server implementations.
48
mechanism.
Code documentation:
Data declaration:
Statement constructs:
The statement constructs used are sequence, conditions
and looping. For each construct the coding is done as a block of
statements for easy understanding, for the complex arithmetic
statements the parentheses are used.
49
1. Login Screen
In the coding of the screens various Java packages
has been imported.
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
import java.lang.String.*;
import java.util.*;
import util.StringTokenizer.*;
50
{
sessionid=user_id; }
For the first time the sessionid is null, so we are generating the
sessionid as user_id.
51
out.println("<form
action=http://localhost:8080/servlet/sampleservlet/" + sessionid + ">");
out.println("<a
href=http://localhost:8080/servlet/signoutServlet/" + sessionid +
">signout</a>");
2.Registration Screen:
Registration form contains various text fields like username,
user id, password, city, state etc.., in which the user enters the details.
3. Items Screen:
52
The administrator can insert the items in his shop. This HTML
contains Text fields like Itemcode, Itemname, Itemdescription, Number
of items etc.
53
54