aspose file tools*
The moose likes Struts and the fly likes How to fill values in selectbox dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to fill values in selectbox dynamically" Watch "How to fill values in selectbox dynamically" New topic
Author

How to fill values in selectbox dynamically

kavitha vasu
Ranch Hand

Joined: Feb 22, 2007
Posts: 70
Can any one explain how can i populate values into select box from database while

form loading itself.


Currently am using ajax , I want to know how can i do this without using ajax


Regards
Kavitha
rahul khanna
Ranch Hand

Joined: Sep 14, 2005
Posts: 48
Use LabelValueBean
kavitha vasu
Ranch Hand

Joined: Feb 22, 2007
Posts: 70
sorry i did not get you

Please explain me brief
rahul khanna
Ranch Hand

Joined: Sep 14, 2005
Posts: 48
google on 'LabelValueBean'
kavitha vasu
Ranch Hand

Joined: Feb 22, 2007
Posts: 70
Hi rahul


Thanks.


I have populated my select box with values from DB by using LabelValueBean.


Now i have problem,


I have 2 fields in my form

one is select box , in that am populating values from DB,

second field is password

Am selecting district from select box

and click submit button without giving password

In form bean am doing validation


so , its shows Enter Password!

Now the selected district in my select box is not retained.

How to retain that old district in my select box



Please help me.

Its urgent.


Thanks
Kavitha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to fill values in selectbox dynamically