
05/05/2009, 02:22
|
| | | Fecha de Ingreso: noviembre-2008
Mensajes: 115
Antigüedad: 17 años, 1 mes Puntos: 4 | |
| Respuesta: Sesion de un uso Como metes los datos en la sesion? Por que tu lo que haces con HttpSession sesion = request.getSession() es recuperar la sesion, no crearla.
Por si acaso no lo haces asi, para guardar los datos, suponiendo que tienes los datos en un String nombre y otro apellido
request.getSession().setAttribute("nombre", nombre);
request.getSession().setAttribute("apellido", apellido);
Y para recuperarlos despues:
String nombre = (String)request.getSession().getAttribute("nombre" );
String apellido = (String)request.getSession().getAttriute("apellido "); |