Passing a enum value as a tag attribute in JSP
- by Jakub
I have a custom JSP tag which is using a parameter which is an enum. This approach is a consequence of using other classes which need this enumeration. The point is I have no clue how to assign an enum value in the EL:
<mytaglib:mytag enumParam="${now what do I type here?}" />
The only workaround which I found so far was to make the…