[Logo] JavaRanch » Big Moose Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


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
Money Mgt Calculator