I created a filter that checked to see whether the request.getRemoteUser()
was set, and if so, did a lookup on the DB to get the first and last names.

Digby

"Tim Penhey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> In a web-app I have a JDBCRealm and most requests are secure (requiring a
logon).
>
> I would like to create a User bean that contains the users first and last
name, both of
> which are stored in the DB table along with the username and password.  I
would like to
> create this User bean when the user logs on and add it to the session, but
I cannot find a
> convenitent way to do it.
>
> Using <jsp:useBean> would require a default constructor, but even if I
wanted that, I
> can't get the request and hence the logged in user.
>
> I looked at HttpSessionListener, but that doesn't seem to have any way to
get the logged
> in user either.
>
> Ideally I would like to use something that is container independant, but I
could go with
> something like a filter if that is the only way.
>
> Am I missing something blindingly obvious?
>
> Tim


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.687 / Virus Database: 448 - Release Date: 16/05/2004




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to