> > 
> > I have a session-scoped bean structured (in part) as follows:
> > 
> > public class Customer {
> >     public Integer id;
> >     public String name;
> >     public Integer getId() {
> >         return id;
> >     }
> >     public String getName() {
> >         return name;
> >     }
> > }
> > 
> > In the JSP, <c:out value="${customer.name}" /> works as
> > expected. However,
> > <c:out value="${customer.id}" /> does not - it throws an 
> > error that the JSP
> > is "unable to find a value for "id" in object..." I added the 
> > following
> 
> Did you try changing "id" to be a string property, instead of Integer?

I did, but other Integers work fine. For instance, "Integer foo/public
Integer getFoo()" works great with <c:out value="${customer.foo}" />. This
tells me it's not the Integer that's a problem.


This message and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they are
addressed.  If you have received this email in error, please delete the
email and any files transmitted with it entirely from your computer. 



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

Reply via email to