putting values on the same row of the jsp [message #547818] |
Sat, 17 March 2012 00:52 |
|
morrisman27
Messages: 4 Registered: March 2012
|
Junior Member |
|
|
Hi!
I have an ArrayList,
ArrayList<PartyDocumentNodeVO> docs = new ArrayList<PartyDocumentNodeVO>();
and I have 3 VOs (same VO in 3 different loops, so, different names) pulling values from 3 different tables in the DB. These 3 VOs point to the same arraylist, docs, and supposed to put values on the jsp on the same rows because 3 different tables give individual column values for the jsp.
JSP(9columns)<--->Controller<----->DAO<------>DB(3tables. Each table has unique columns to fill up jsp row values)
3 VOs (below, again these VOs refer to the same VO, PartyDocumentNodeVO)) are:
docs.add(newVO);
docs.add(foundVO);
docs.add(thisVO);
This (below) is the end of the Return statement,
PartyDocumentNodeVO[] theReturn = new PartyDocumentNodeVO[docs
.size()];
docs.toArray(theReturn);
return theReturn;
With this setup, it's putting the values on different rows by creating new rows on the jsp. I like it to put on the same row.
How do I write the Return array statement?
Any help please?
|
|
|