session - java: request.getSession().getAttribute is null -
i have set attribute in session got cxf resource through following code:
httpsession session = request.getsession(); session.setattribute("field", "testvalue");
when try retrieve value in servlet:
request.getsession().getattribute("field")
the returned value null. i've debugged code , session in cxf resource has different id session in servlet. browser session same. can me figure out how fixed? thanks
Comments
Post a Comment