init state mostly works

changed the request.getAttributes to request.getParameter