This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have an enum in my model. This enum has several sort by types, Name, Status, Default. Each of these enum's have two properties, their column name (used by a DAO implementation) and a description (used by the JSP page to provide a drop down menu)
Now there are 2 things I need to know.
1) How do I dislpay these to the page. My guess is the following.
/* this goes into my page action */
/* this goes no the jsp page */
2) How do I get the request back from the page? I don't have a clue on how to do this, other than a case statement, because the request.getParameter("productSortBy") is a String.
Is there a simpler way to do this?