Following the latest message, what is the syntax if your session attribute is
a List of Principal objects and what you want is an attribute in

a) the first object in the list ( principals[0].name)

b) the first object of the child principal Principal1
(principal1Object.name) ?



Wesley Wannemacher wrote:
> 
> Try - 
> <s:property value="#session.user.username" />
> 
> -Wes 
> 
> -----Original Message-----
> From: Diego Ezquerro [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 30, 2007 11:30 AM
> To: struts
> Subject: Struts tags help
> 
> Hi to everybody.
> 
> I'm developing a web app using struts and wanna know if there is a way to
> get the session attributes using struts tags.
> What i want to do is something like this (within a jsp page):
> 
> <%
>     User user = (User)session.getAttribute("user");
>         out.println("Welcome " + user.getUsername() + "!");
>     %>
> 
> Gettin' the user attribute and then have it available in the whole page.
> I've tried <bean:parameter .../> but it doesn't work fine.
> 
> Thanks for the answers.
> 
> 
> 
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
> Regístrate ya - http://correo.espanol.yahoo.com/ 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-tags-help-tf4177812.html#a12778998
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to