This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes select drop down question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "select drop down question" Watch "select drop down question" New topic

select drop down question

Liz Brown
Ranch Hand

Joined: Oct 22, 2002
Posts: 112
I have a question on this, particular type os drop down select.
Has anyone implemented it in similar way or a easier way? Could you please guide me?
Such a code is occuring 3 times in my jsp. with different property name ofcourse.

<html:select property="productIdDrop">
<html ption value="" ><bean:message key="" bundle="Resources"/></html ption>
<html ption value="value1" ><bean:message key="select.startwith" bundle="Resources"/></html ption>
<html ption value="value2" ><bean:message key="select.equalto" bundle="Resources"/></html ption>
<html ption value="value3" ><bean:message key="select.contain" bundle="Resources"/></html ption>

where is --select one--
select.startwith is start with
select.equalto is equal to
select.contain is contain
santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156

what is your question?

santhosh<br />SCJP,SCWCD
Liz Brown
Ranch Hand

Joined: Oct 22, 2002
Posts: 112
i have a select drop down list who gets values from database with help of javabean.
My question was how to write it in jsp code and javabean?
I agree. Here's the link:
subject: select drop down question
Similar Threads
how to fill a combobox with values from objects in an ArrayList...
populate a combo drop down box by using the values defined in a resource file
Selecting multiple values without using Ctrl or shift
validation.xml - how to ignore the required fields if a checkBox was clicked?
bean:message tag in option tag. is there a solution?