Paul Cowan wrote:

> Hi all,
>
> I'm having a problem under Allaire JRun 3.0 (Struts nightly build from last
> week).
>
> The following code works in our page:
>
>         <bean:write name="sku" property="product">
>
> and the following doesn't
>
>         <bean:write name="sku" property="product.name">
>
> When there is a perfectly valid getName() method in the corresponding
> Product returned by sku.getProduct().
>
> The exception given is
>
> javax.servlet.jsp.JspException: IllegalAccessException accessing property
> product.name of bean sku
>

One thing to double check is that your bean class has a public no-args
constructor, that the class itself is declared public, and (of course) that the
getter methods are public.  I've seen IllegalAccessException problems when any
of these three things is violated.

Craig


Reply via email to