Depending on which EL version you're using, you could also extend ElResolver
(and register it). Not sure if that would be worth the trouble, though.

On Thu, Aug 13, 2009 at 9:50 PM, M@ Hunter <[email protected]>wrote:

> Hi,
>
> I'm trying to add the value of a constant from my action bean to a
> link - but I must be missing something.    In my action bean I have:
>
> ...
> public static final int OPTIONAL = 2;
> public static final int ALL = 3;
> ...
>
> then in the corresponding jsp I have:
>
> <s:link beanclass="com.example.ExampleActionBean"><s:param
> name="report" value="${actionBean.ALL}"/>Reports for All</s:link>
>
> but this always generates the error:
>
> org.apache.jasper.JasperException: javax.el.PropertyNotFoundException:
> The class 'com.example.ExampleActionBean' does not have the property
> 'ALL'.
>
>
> I've tried making getALL() methods, etc - but it always fails.  I'm
> sure I'm just doing something stupid...
>
> Thanks :)
> M@
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to