1-If the data for the dropdown box is coming from a database, you are going to have to store the option descriptions in each language in the database with the locale or language as part of the key. Then, in the Action class that forwards to this JSP, get the locale of the client by calling super.getLocale(). From this, you can tell what language the client is using and populate the list used by <html ptions> from the database in the appropriate language.
2-If the options are not coming from a database, but you just want them displayed in the appropriate laguage, use the <html ption key="xxx"> tag for each option. The text for the option will then be taken from your ApplicationResources bundle and will be in the appropriate language
You could put the value and the message key in the database and define each message key in each of the languages in your resource bundle. In your JSP, you could then iterate through the list of values and keys obtained from the database and specify something like this:
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)
Joined: Feb 15, 2005
When you use <html:select>, you must also use <htmlption> instead of just <option>. [ January 26, 2006: Message edited by: Merrill Higginson ]