I don't think you need the property attribute
ajTreece <[EMAIL PROTECTED]> on 04/29/2002 04:04:18 PM
Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc:
Subject: Re: session parameter values
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]>
**********************************************************************
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged. It is
intended only for the use of the individual(s) named above. If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws. If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer. Thank you.
**********************************************************************
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>