boss you are uing MVC architecture why you are performing "database operations" on your view. i would suggest you to create an action first and you must create a list in its execute function. and
1. you must declare a "List Type Variable"hardware list.2. Fill the list as you have filled in your UI.
3. then create setter and getter for that List variable "hardwarelist".
4. after that you can set <s:select list="hardwarelist" headerKey="0" headerValue="Select Device" />
this will work
Remember list attribute of select will be same as the list variable name you declar in your action.
Do not forget to make entry in Struts.xml as:
<action name="Your cation in which you have mak your list" class="the action class">
<result name="success">YourJsp Page</result>
Don't listen to Steve. Just read this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss