> -----Original Message----- > From: Pavlikus [mailto:[EMAIL PROTECTED] > > <% > UserSessionInfo info = (UserSessionInfo) > session.getAttribute(UserSessionInfo.USER_SESSION_INFO_KEY); > > <!-- Print user's login ok --> > out.println(info.getUser().getLogin()); > %> > > Later on page: > > <!-- Prints empty strings instead of user's login --> > <c:out value="${info.user.login}"/> > <c:out value="${info.user.role.title}"/> > > Please tell me where my mistake. > Also, is there ways to avoid scriptlets on my jsp? > I use <jsp:useBean> but it always try to create new instance > of UserSessionInfo, instead of find it in session.
What is the value of "UserSessionInfo.USER_SESSION_INFO_KEY"? If it is "info" then I don't see what might have been wrong, unless you don't have the correct taglib directives. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]