users@jax-rpc.java.net

JAX-RPC sessions

From: Michael Servaas <michael.servaas_at_tiscali.nl>
Date: 11 Aug 2004 12:44:57 +0200

Hi,

I am working on a project which requires me to implement sessions in my
JAX-RPC web services.
I have tried to do this using:

HttpServletRequest request;
HttpSession mySession = request.getSession(true);
mySession.setAttribute("sUserName", sUserName);

Later on I want to retrieve the "sUserName" property using:

String sUserName = (String) mySession.getAttribute("sUserName");

I get NullPointerExceptions (starting at HttpSession mySession =
request.getSession(true);)

Does anybody know how to implement sessions the right way?

Best Regards,

Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net