Thanks Mark for the quick reply...

I made the changes you suggested, but it still bombs out. Here is the error:

[ServletException in:/common/userPortals/userData.jsp] No getter method for 
property UserName of bean UserName'

Here is the line in my jsp:

<bean:write name="UserName" scope="session" property="UserName"/>

And here is how it is set in the servlet:

String fName = LdapPeopleAdmin.getPerson(userid).getFirstName();
String lName = LdapPeopleAdmin.getPerson(userid).getLastName();
session.setAttribute("UserName", fName+" "+lName);

I have logging set up and can verify the the value is actually set in the 
session scope.

Any clues?
Thanks ajTreece



Galbreath, Mark wrote:

> Whatever you named it with the session.setAttribute( "[name]", userName).
> And change parameter to property.
> 
> Mark
> 
> -----Original Message-----
> From: ajTreece [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 29, 2002 5:52 PM
> To: Struts Users Mailing List
> Subject: session parameter values
> 
> 
> This should be fairly simple, but for some reason I can't get it to work.
> 
> In my LogonAction servlet, after a valid login, I set some session
> parameters 
> with your basic method like session.getAttribute("UserName");.
> 
> Now from my jsp I want to display the value of that parameter. I assume that
> you 
> would use a <bean:write name="name" scope="session" parameter="UserName"/>.
> The 
> challenge is I can not figure out what name="" should be. No matter what I
> try I 
> get the following error:
> 
>   [ServletException in:/common/userPortals/userData.jsp] Cannot find bean
> XXX in 
> scope session'
> 
> What id the correct name to use for session values?
> 
> Thanks, ajTreece
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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

Reply via email to