Best approach to populate a JSP dropdown with fixed/static list of values
posted 2 years ago
I have a fixed list of 20+ values to be populated in a dropdown. The set of values are always going to remain the same, no future scope of modifications, additions or deletions.
Listing each of them as <option> in JSP is making the page look cluttered. Or is it better reading it as a comma-separated string from a properties file and then iterating to populate the dropdown.
Or any other suggestions.
What will be the best approach to populate such a dropdown in JSP?