Hi Michael,

On 26 Oct 2007 at 11:14, Michael Horwitz wrote:

> The best way is probably to build your own custom JSP tag that knows how to
> extract you User object from the ACEGI authentication context.

Thanks for that tip.  I'd presumed the user object in the ACEGI 
authentication context was a different beast, but looking at the code for 
org.appfuse.model.User, code, I note that it implements the ACEGI 
UserData interface so I guess if I try pulling the User object from the ACEGI 
authentication context and cast it to an org.appfuse.model.User I may find I 
get something recognisable.

Failing that, I can always use getRemoteUser() and UserManager.

> On 10/26/07, Rob Hills <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >
> > I need to display some information from my user class on the page header.
> > My modifications to header.jsp work for everything except the main menu
> > page after first login and it quickly became obvious that it is because no
> > action class has been called to load up the user object.
> >
> > I have a customised the user class and I don't believe it is available via
> > the
> > authz tag.
> >
> > Obviously I could put some code in mainMenu.jsp to load up a user object,
> > but that feels wrong as it would be starting to put some model logic into
> > the
> > view.  What's the best way of making a user object visible within
> > mainMenu.jsp before any of my normal actions have been called?
> >
> > TIA,
> > Rob Hills
> > Waikiki, Western Australia
> > Mobile +61 (412) 904-357
> > Fax: +61 (8) 9529-2137
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 

Rob Hills
Waikiki, Western Australia
Mobile +61 (412) 904-357
Fax: +61 (8) 9529-2137

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

Reply via email to