Tommy Berglund wrote:

> Hello everyone,
>
> I'm using jsp1.0 and I'm having some trouble. It seems that everyone
> that goes to my jsp-pages share the same bean, which I do not want. I
> want everyone to have their own bean, sort of a user-bean which stores
> information about a specific user. This is what I've tried to do, but
> which doesn't work.
>
> index.jsp
>
> <jsp:useBean id="bean" class="bean.Bean" scope="session" />
> ...
> <body>
> <%
> session.putValue(session.getId(),bean);
> %>

Using a session id as a session variable name is not only just a bad idea
which violates the session value naming convension, it is also probably a
serious bug in this case.  Try:

session.putValue("bean.Bean",bean);

etc.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to