Hi,
You may want to check the docs for the html:select tag; the property="" tag
can be used to 'dictate' the current selection.
Is that what you need? If not, please describe your issue some more. Maybe
some example code helps?
Cheers,
Renzo
-----Original Message-----
From: DHarty [mailto:[EMAIL PROTECTED]]
Sent: donderdag 12 juli 2001 16:35
To: Struts User
Subject: html:select/options
Is there a way to dictate which "option" in a collection is set as
"selected" when the page is rendered?
ex
<html:options collection="Roles" property="name" />
For example, I have a collection of projects that are rendered by the
<html:options> tag. I also have some java script which updates a project
description box when the selection is changed. The problem is when the page
is first rendered, the two don't always match up. I initialize the
description box to the first item in the collection, but the select doesn't
always choose the first item.
Thanks
D