Hello to all others in this great world,
I am new to this list and hope that somebody can help me with my (I think)
little problem.
In a JSP I make:
<%@ taglib uri="/WEB-INF/displaytag-12.tld" prefix="displaytag"%>
<displaytag:table name="resultlist" scope="session"/>
The "resultlist" is build by the following code. For access to the Database
I use Torque. When I show in the log of the oc4j I see, that the right
results are stored in userlist.
--------------------------------------------
SearchForm sf = (SearchForm) form;
Criteria crit = new Criteria();
crit.add("users.Lastname", sf.getSearchString());
List userlist = UsersPeer.doSelect(crit);
ArrayList rSet = new ArrayList();
if(userlist.size() != 0)
{
for (Iterator i = userlist.iterator(); i.hasNext();)
{
Users users = (Users) i.next();
ArrayList column = new ArrayList(2);
column.add(users.getFirstname());
column.add(users.getLastname());
rSet.add(column);
}
request.getSession().setAttribute("resultlist", rSet);
--------------------------------------------
When I load the JSP the only thing I get is the following html code:
--------------------------------------------
<table>
<thead>
<tr>
<th>Empty</th></tr></thead>
<tbody>
<tr class="odd">
<td>false</td></tr>
<tr class="even">
<td>false</td></tr></tbody></table>
--------------------------------------------
After one hour of searching and reading the API and so on, I hope that
somebody of you can help me. I think the error is in the ArrayList or so...
Thanks,
Thomas
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user