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
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
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
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
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