I've the enum type ReportTypeEnum
that get passed between methods in all my classes but I then need to pass this on the URL so I use the ordinal method to get the int value. After I get it in my other JSP page, I need to convert it to back to an ReportTypeEnum
so that I can continue passing it.
How can I convert ordinal to the ReportTypeEnum
?
Using Java 6 SE.