PDA

Click to See Complete Forum and Search --> : Session servlet and vectors


yyayl
Jul 28th, 2003, 12:05 PM
Hi people, from the following servlet code:


public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
HttpSession session = request.getSession(true);
session.setAttribute("name", request.getParameter("name"));



It stores the name in the session. Question is how do i store the name in a vector? Examples or references would be helpful Thanks alot!

CornedBee
Jul 29th, 2003, 02:02 AM
What do you mean store? Persistent data is best stored as session var or in some database. How would you persist the vector?