On 14-Oct-05, at 5:10 PM, SourceForge.net wrote:
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3383187
By: cliles5
Complete noob here to displaytags and dynabeans.
Ok, when I have a simple query like:
"select * from table" I can use the displaytag very well to
actually display
the data from the query, but when I have a query with some joins in
it I get
a table that says:
"[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]"
I am assumeing that this is a collection of dynabeans and their
respected memory
locations ?!
That's the standard result of Object.toString(), which BasicDynaBean
doesn't override.
so what am I doing wrong, or more importantly how do I get the tags
to display
the data held in those beans??
My tag looks like this:
<display:table name="requestScope.ticketTable.rows" />
You'll need to either change whatever database query logic you have
to return beans with a meaningful toString() or add <display:column/>
tags to specify the properties of the beans to display -- which may
not work trivially, since a DynaBean isn't a 'real' JavaBean.
L.
--
Laurie Harper
Open Source advocate, Java geek: http://www.holoweb.net/laurie
Founder, Zotech Software: http://www.zotechsoftware.com/
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user