You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beehive.apache.org by "Miller, Michael P" <Mi...@mantech-ist.com> on 2005/04/27 21:18:26 UTC
error help ?
Hi, getting this error:
Exception:
javax.servlet.jsp.el.ELException: Unable to find a value for
"currentStaff" in object of class "staffFlow.StaffController" using
operator "."
My jsp has a line like this:
<netui:label value="${pageFlow.currentStaff.first_name}"></netui:label>
And the Controller class has this line:
public StaffInfo currentStaff;
Inside Staffinfo there is a public member: String first_name; and a
getter getFirst_name()
I verified in the action method that currentStaff.first_name has a
value.
Any ideas why this won't work ?
Thanks,
Mike Miller
Re: error help ?
Posted by Eddie O'Neil <ek...@bea.com>.
Michael--
The JSP 2.0 EL is only able to bind to public JavaBean properties;
the problem below should be fixable by adding:
public StaffInfo getCurrentStaff() {
return currentStaff;
}
to the JPF.
Hope that helps.
Eddie
Miller, Michael P wrote:
> Hi, getting this error:
>
>
>
> Exception:
>
> javax.servlet.jsp.el.ELException: Unable to find a value for
> "currentStaff" in object of class "staffFlow.StaffController" using
> operator "."
>
>
>
> My jsp has a line like this:
>
> <netui:label value="${pageFlow.currentStaff.first_name}"></netui:label>
>
>
>
> And the Controller class has this line:
>
> public StaffInfo currentStaff;
>
>
>
> Inside Staffinfo there is a public member: String first_name; and a
> getter getFirst_name()
>
>
>
> I verified in the action method that currentStaff.first_name has a
> value.
>
> Any ideas why this won't work ?
>
>
>
> Thanks,
>
> Mike Miller
>
>
>
>