From my website this servlet below gets called number of times and every time it has to store a value in vector. But I dont want the vector to lose its previous contents once the servlet execution is complete. Like a shopping cart.
public void putValues(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
Vector<Object> vector = new Vector<Object>();
vector.add(request.getParameter("UID"));
}
Any ideas?