Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected Map referenceData(HttpServletRequest httpServletRequest, Object o, Errors errors) throws Exception {
- Map<String, Object> map = new HashMap<String, Object>();
- map.put("countryList", Arrays.asList(Country.values()));
- return map;
- }
- <form:select path="country" items="${countryList}" title="country"/>
- <form:select path="country" title="country" >
- <form:option value=""> </form:option>
- <form:options items="${countryList}" />
- </form:select>
Add Comment
Please, Sign In to add comment