It looks to me like the tag library doesn't support dynabeans. Maybe it does, maybe it doesn't - I'm not sure. Is there anything in the documentation that says they're supported?

Matt

On Mar 2, 2004, at 11:49 AM, Frank Schaare wrote:

I�m trying to display a database table. This should be possible using RowSetDynaClass.

I�ve done the following code:

rsdc = sqlManager.getRowSetDynaClass("Select * from users");
List rows = rsdc.getRows();
req.getSession().setAttribute("result",rows);

which works fine. Using <display:table name="sessionScope.result" /> gives me a table with the following columns:
User_name, Userid, Phone, Lastname, Room, User_pass, Fax, Firstname


Now i�m trying the second example in displaytag-examples/example-columns.jsp, because i want to diplay only the relevant
columns like User_name, Userid, User_pass using this tag:


<display:table name="sessionScope.result">
  <display:column property="Userid" title="ID" />
  <display:column property="User_name" />
  <display:column property="User_pass" />
</display:table>

This gives me the following exception:
org.apache.jasper.JasperException: Error looking up property "Userid" in object type "org.apache.commons.beanutils.BasicDynaBean"


Where is my fault ?




------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op�k _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user



------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to