struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xianwinwin <xianwin...@gmail.com>
Subject Re: (Struts2) howto access the user.fname on the jsp page (user's object in http session)
Date Mon, 14 Jan 2008 15:56:05 GMT

THANK YOU ROBI!!!!



Roberto Nunnari wrote:
> 
> Try this:
> 
> <s:property value="%{#session.USER_SESSSION_HANDLE.fname}"/>
> 
> --
> Robi
> 
> 
> xianwinwin wrote:
>> Hi there,
>> 
>> using struts2: I have just place the user's information on a session:
>> 
>> session.setAttribute(Properties.USER_HANDLE, secUser);
>> 
>> 
>> I wonder how to access on a jsp page the info; I tried, unsuccessfully,
>> the
>> following combinations:
>> 
>> 
>> <s:text name="USER_SESSSION_HANDLE"><s:bean
>> name="fname"></s:bean></s:text>
>> <s:label><s:bean name="USER_SESSSION_HANDLE.fname"></s:bean></s:label>
>> 
>> 
>> any idea?
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/%28Struts2%29-howto-access-the-user.fname-on-the-jsp-page-%28user%27s-object-in-http-session%29-tp14803679p14804470.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message