How about if You try with this code in formbean
Public String getGender()
{
return gender;
}
public void setGender(String gender)
{
this.gender=gender;
}
-----Original Message-----
From: Goldy J [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 4:38 PM
To: [EMAIL PROTECTED]
Subject: populating Drop down -pls help
Hello,
I have a JSP in which there are number of dropdown along with text
boxes. I am using struts tag lib for getting the value when I submit the
form.
The problem is when I try to populate the dropdown in th JSP with the
data that i get from the databse .
For example I have dropdown for gender with option M,F.Now when I select
and submit it I am OK but when I query and get the value from DB It
doesnt set to appropiate value but always with the deafult M. same for
others dropdowns.
Iam using the following in my JSP
<html:select property ="gender"><htrml:option
value="m"></html:option><htrml:option
value="f"></html:option></html:select>
In formbean
String gender;
setGender{};
getGender{};
Any help will be highly appreciated Thanks in advance.
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]