On Tue, 30 Apr 2002, Damien VIEL wrote:
> Date: Tue, 30 Apr 2002 14:44:51 +0200
> From: Damien VIEL <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Session + getProperty > Not Working
>
> Hi,
> Anybody knows where this bug can come from ?
> In my LogonAction.java I do :
>
> User user = new User(iduser, fname, lname);
> HttpSession session = request.getSession();
> session.setAttribute(Constants.USER_KEY, user);
> System.out.println(
> "LogonAction: User '"
> + user.getLastName()
> + " "
> + user.getFirstName()
> + "' logged on in session "
> + session.getId());
> return (mapping.findForward("success"));
>
>
>
> And after the forward i've got this message ?!
>
> org.apache.jasper.JasperException: Cannot find any information on property
> 'lastname' in a bean of type 'my.package.User'
If your bean getter method is "getLastName" then your property name needs
to be "lastName" instead of "lastname".
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>