Re: [Stripes-users] Getting a constant value from an action bean in a link param

2009-08-13 Thread Levi Hoogenberg
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 wrote: > Hi, > > I'm trying to add the value of a constant from my action bean to a > link - but I must b

Re: [Stripes-users] Getting a constant value from an action bean in a link param

2009-08-13 Thread Nathan Maves
an even better solution would be to use an enum On Thu, Aug 13, 2009 at 1:50 PM, M@ Hunter 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; > p

Re: [Stripes-users] Getting a constant value from an action bean in a link param

2009-08-13 Thread Nathan Maves
you need to provide simple getter methods for these constants. i.e. public String getAll() { return ALL; } On Thu, Aug 13, 2009 at 1:50 PM, M@ Hunter 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 be

Re: [Stripes-users] Getting a constant value from an action bean in a link param

2009-08-13 Thread Daniil Sosonkin
Unfortunately in EL you cannot do. Really annoying too. Use JSP scriplet: Reports for All Daniil M@ Hunter 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 OP

[Stripes-users] Getting a constant value from an action bean in a link param

2009-08-13 Thread M@ Hunter
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: Reports for All but this always gener