|
|
Re: expresso tags
|
Posted: Oct 15, 2008 3:21 AM
|
|
> Hi guys want to list data in a listbox from DB2 database > dynamically using expresso framework, jsp, controller and > DBObjects
Lmao, use one of the Cook Books placed in the repository for the Bank you work at.
Just kidding:
Here goes --
List dbObjs = dbObj.searchAndRetrieve();
Input inp = new Input();
inp.setName("myNameInJSP");
inp.setType("select");
Iterator iter = dbObjs.iterator();
while(iter.hasNext())
inp.setValidValue(iter.next());
// add it to the response
response.add(inp);
// In your JSP
<expresso:InputTag name="myNameInJSP"/>
Good luck - what a horrible framework though.
|
|