You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Galbreath, Mark" <Ga...@tessco.com> on 2002/08/30 15:07:33 UTC

RE: Display dropdown list with data from Application Resources ?? ?

Read the file into a class, parse the key/values and stick them in a
Properties object.  Define the object as a page-scoped bean and assign
whatever values you want to an <option> tag.

Mark

-----Original Message-----
From: Struts Rodolphe [mailto:strutsphobian@yahoo.com]
Sent: Friday, August 30, 2002 8:57 AM
To: struts-user@jakarta.apache.org
Subject: Display dropdown list with data from Application Resources ???



Does anyone know of an elegant solution to display a drop downlist with
default data from Application Resources file? Specifically, I want to
display all the days in a week.  It'd be nice if we can specify in Resources
properties file as followed: weekday.0= Sunday weekday.1=Monday....Then use
<bean:messge key > inside the <html: select>.  Currently I have it a
collection of beans stored in application context, then use <html:options>
within <html:select>, which is not a good idea.

Thanks for any inputs.



---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>