Reputation: 4773
I am trying to access a object using session scope . I am doing this in jsp
${sessionScope.loginBean.loginName}
but its returning empty value. Is this the correct way of accessing session variable in java class I have already set loginBean inside the session.
session.setAttribute("loginBean",loginBean)
please help. thanks
Upvotes: 0
Views: 2107
Reputation: 378
Try to run the Jsp in Debug mode and see whether the value of the loginBean is set properly.
Upvotes: 1