The Artima Developer Community
Sponsored Link

Java Answers Forum
expresso tags

1 reply on 1 page. Most recent reply: Oct 15, 2008 3:21 AM by Kondwani Mkandawire

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Bheki Maseko

Posts: 1
Nickname: sgv013
Registered: Oct, 2008

expresso tags Posted: Oct 14, 2008 6:02 AM
Reply to this message Reply
Advertisement
Hi guys want to list data in a listbox from DB2 database dynamically using expresso framework, jsp, controller and DBObjects


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: expresso tags Posted: Oct 15, 2008 3:21 AM
Reply to this message Reply
> 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.

Flat View: This topic has 1 reply on 1 page
Topic: Capture http requests Previous Topic   Next Topic Topic: Netbeans - version checking

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use