I have an Enum called Status defined as such:
public enum Status {
VALID(\"valid\"), OLD(\"old\");
private final String val;
Status(String va
When using a MVC framework I put the following in my controller.
request.setAttribute(RequestParameterNamesEnum.INBOX_ACTION.name(), RequestParameterNamesEnum.INBOX_ACTION.name());
This allows me to use the following in my JSP Page.
It can also be used in your comparison
Which I prefer over putting in a string literal.