Hi
I am using the third option But I am getting the following error
Java HashMap languagesType= new HashMap ();
languagesType.put("top.property.link" ,"1");
languagesType.put("top.property.unlink","2");
languagesType.put("top.property.item","3");
request.setAttribute("languageType",languagesType);
JSP
<html:select property="language">
<c:forEach var="option" items="languageType">
<option key ="${option.messageKey}" value="${option.value}" />
</c:forEach>
</html:select>
Error
org.apache.jasper.JasperException: <h3>Validation error messages from TagLibraryValidator for c</h3><p>null: org.xml.sax.SAXParseException: Attribute "style" was already specified for element "html:select".</p>
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411)