Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > nested:iterate or logic: iterate with multibox??

Thread Tools

nested:iterate or logic: iterate with multibox??

Posts: n/a
Hi all:

Im not sure which to use with this problem, so ill just wing it out...
I am prepopulating an array of QueryResults from the data base.

class QueryResults {
boolean selected; //a bool value from database
// use to set box to checked or unchecked.
String col1data;
String col2data;

This QueryResults bean lives in:
class QueryResultsFormBean extends ActionForm {
QueryResults[] queryRes;
String jspFld1;
String jspFld2;
String jspFld3;

The action execute() is pulling things out of the data base and filling
in the form data:
public class QueryInitAction extends Action {
QueryResultsFormBean myForm = (QueryResultsFormBean)form;

Now when i get to the actual jsp I tried the following:

property="queryRes" // the name of the attribute on the ActionForm
<html:multibox property="selected">tape6
<bean:write name="element" />
<bean:write name="element" property="jspFld1" />
//jspFld1is on the ActionForm

I think im missing the name attribute somewhere along the line??? Or
should I be using the nested tag?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to iterate 2 nested collections w <logic:iterate> without a"getter" John Java 4 04-01-2008 09:46 AM
Iterate through static items in a dropdownlist Do ASP .Net 2 12-04-2003 03:21 AM
iterate thru controls in Table Cells? JDavies ASP .Net 2 11-11-2003 07:52 PM
<logic:iterate /> iterate beyond items in the collection Gogo Java 1 09-04-2003 08:40 PM
Iterate through ArrayList using an another ArrayList Saravanan Rathinavelu ASP .Net 3 08-19-2003 07:03 AM