On 01/10/2003 05:27 Shane Mingins wrote:
Hi
What is the best method to display a collection of items in a list to allow the user to select an item that is then passed on to some other action or process?
For example, if I was creating a Swing UI then I can use a JList and call the getSelectedIndex() method.
Ideally I would like to generate a <SELECT> element from a Collection (optionsCollection) where the value submitted for the select property is the Index value of the selected option. Is that actually possible?
Am I looking in the right direction at http://jakarta.apache.org/struts/faqs/indexedprops.html?
Or is it a job for JavaScript?
I use a table with a link for each entry which passes an id to the next action. I use <table> et al, <logic:iterate> and <html:link> tags but you could use JSTL if you prefer.
HTH
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller Business |
| Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

