This week's book giveaways are in the JBoss and Spring forums.
We're giving away four copies each of JBoss AS 5 Development and Spring Dynamic Modules in Action and have the authors on-line!
See this thread and this one for details.
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of JBoss AS 5 Development this week in the JBoss forum
or Spring Dynamic Modules in Action in the Spring forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Object Relational Mapping
 
RSS feed
 
New topic
Author

retrieve database values in <html:select> using hibernate and struts1

vrushali chaskar
Greenhorn

Joined: Jan 27, 2009
Messages: 13

i m using struts1.2 and hibernate.
I m using <html:select> in struts form but i want to display values which are retrieved from database.
i have used <htmlptions propery="budgetExpend">
but how to fill this list box that i dont know

How i can i do this using Hibernate but not with dao object.

pei qing
Greenhorn

Joined: Jun 27, 2009
Messages: 1

<html:select style="width: 100px;" name="addDeviceForm"
styleId="object.dataType" property="object.dataType"
onchange="onchangeobjecttype(this.value)">


<htmlptions collection="List" property="value"
labelProperty="value" />


</html:select>

 
jQuery in Action
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Object Relational Mapping
 
RSS feed
 
New topic
replay challenge