aspose file tools*
The moose likes Struts and the fly likes Problem with html:select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with html:select" Watch "Problem with html:select" New topic

Problem with html:select

Vrushali Gore
Ranch Hand

Joined: Oct 17, 2005
Posts: 40
I am using JavaScript to fill in elements in list on the page. My code adds all options properly to list. But when i view the new page it is by default selecting all the options in list. Wherein none of the option should be selected. Is there any solution to this problem? Is there any property to be set that will deselect all the options?

Thanks in advance.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Just make sure that in your JavaScript code, you set the selected property of each option to false.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Problem with html:select
Similar Threads
Jsp error page handling
Page Breaks...
getting options from select list
Help for Coding Java Program to zip code based search results
getting multiple values out of an html:select option box