You should be able to use the <jsp:useBean scope="session" ... /> where the id of the bean is the key that had been used to set the attribute.
What were you using when your <jsp:useBean /> tag was trying to create a new instance? Tim > -----Original Message----- > From: Pavlikus [mailto:[EMAIL PROTECTED] > Sent: 20 June 2004 15:22 > To: [EMAIL PROTECTED] > Subject: jstl trouble > > > Hello all. > > <% > 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. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]