/**
* Simple Shopping Cart V1
*
* Session tracking with hidden form field. Note that the simplified
* session number generation here is not safe (easy to guess) or
* thread-safe.
*/
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Cart1 extends HttpServlet {
int sss;
HashMap cart;
/**
* Create a form
*/
String createForm( String sess )
{
String form="";
String method = "method=get";
String action = "action=Cart1";
String e1 = "Item:
";
String e2 = "";
String e3 = "
";
String e4 = "
";
form += "