/**
* Simple Shopping Cart V2
*
* Session tracking with URL rewriting. 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 Cart2 extends HttpServlet {
int sss;
HashMap cart;
/**
* Create a form
*/
String createForm( String sess )
{
String form="";
String method = "method=post";
String action = "action=Cart2?sess=" + sess;
String e1 = "Item:
";
String e2 = "";
String e3 = "
";
form += "