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("<b>Welcome " + user.getUsername() + "!</b>");
    %>

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]

Reply via email to