The most likely cause is that the column names in your RowSetDynaCLass are
forced to lower case.  So try using property="userid" etc.

NBirch

-----Original Message-----
From: Frank Schaare [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 12:49 PM
To: [EMAIL PROTECTED]
Subject: [displaytag-user] RowSetDynaClass with columns throws exception


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=click
_______________________________________________
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