This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
hello friends, I am developing an e-commerce application. I have a question related to sessions. I am creating a session like this HttpSession session = request.getSession(true); and I can set one attribute (session.setAttribute(name, value)). but how can I set multiple attributes to this session object. for example, when the session is created it should set the username and password. Thanks, Ramu
but how can I set multiple attributes to this session object. session.setAttribute(name1, value1) session.setAttribute(name2, value2) session.setAttribute(name3, value3) and so on.... if you want to have a single object that holds multiple variables you can easily store it in the session (array, hashtable, anything that is an object)
I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury