A
Anders Steinlein
I have a JSP page where all regular messages are retrieved from property
files using <bean:message ...>. But how do I display a bunch of localized
HTML options in a form? For instance, consider this code snippet:
<html:select property="country" size="1">
<html
ptions property="countries" />
</html:select>
In this example, the options will be populated from the countries field
in my ActionForm, but then I have to hard-code the countries, which is
not what I want.
Do I have to make an Action that populates the relevant fields in the
ActionForm before the view is pulled up, or is there a more "elegant"
approach? If not, how do I go about doing that (getting the correct
properties by code)?
Thanks in advance for any help!
\Anders
files using <bean:message ...>. But how do I display a bunch of localized
HTML options in a form? For instance, consider this code snippet:
<html:select property="country" size="1">
<html
</html:select>
In this example, the options will be populated from the countries field
in my ActionForm, but then I have to hard-code the countries, which is
not what I want.
Do I have to make an Action that populates the relevant fields in the
ActionForm before the view is pulled up, or is there a more "elegant"
approach? If not, how do I go about doing that (getting the correct
properties by code)?
Thanks in advance for any help!
\Anders