• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
vrushali chaskar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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>

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic