my property type is long only. can you suggest me what i can do to use this RowsetDynaClass
Thanks
usha
Craig R. McClanahan wrote:
On Sat, 25 Jan 2003, usha wrote:
Date: Sat, 25 Jan 2003 15:21:36 +0800Try making your property type "long" instead of "int". It would be nice
From: usha <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: urgent RowsetDynaClass help
Hi
i am trying to use the RowsetDynaclass in my actionform class like this
public Collection getBatchidlist() throws Exception {
....
....
rs = stmt.executeQuery("select ivtransbatchid from ivtranshdr
order by ivtransbatchid");
RowSetDynaClass rsdc = new RowSetDynaClass(rs);
rows = rsdc.getRows();
return rows;
}
i am getting the following exception
org.apache.commons.beanutils.ConversionException: Cannot assign value of
type 'java.lang.Integer' to property 'ivtransbatchid' of type
'java.lang.Long'
if the standard converters did widening and narrowing conversions when
possible (would make a good enhancement request), but at the moment they
do not.
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

