Here is the enum I have
public enum CategoryDto {
DRINKS,
BURGERS,
SNACKS
}
Here is how I print them out using Thymeleaf in my Spring Boot project
<select class="form-select" aria-label="Choose category">
<option th:each="category : ${T(com.exampleepam.restaurant.dto.CategoryDto).values()}"
th:value="${category}" th:text="${category}"></option>
</select>
Pretty easy, now I have select filled with my enums.
But how can I do the same in JSP without thymeleaf in Servlet project?