<% String tool = request.getParameter("selecttool"); session.setAttribute("tool", tool); %> Tool selected is <%= session.getAttribute("tool") %>