Re: [dbcp] Call Oracle stored procedure via DBCP?

2004-11-29 Thread Sergey Karpov
I shall try to describe more precisely a situation with call Oracle stored procedure through DBCP. During a call of stored procedure through DBCP there is a mistake of reduction of type: java.lang.ClassCastException server.xml ?xml version=1.0 encoding=UTF-8? Server debug=0 port=8081

Re: [dbcp] Call Oracle stored procedure via DBCP?

2004-11-29 Thread Sergey Karpov
I shall try to describe more precisely a situation with call Oracle stored procedure through DBCP. During a call of stored procedure through DBCP there is a mistake of reduction of type: java.lang.ClassCastException server.xml ?xml version=1.0 encoding=UTF-8? Server debug=0 port=8081

Re: [digester] Help needed

2004-11-29 Thread José Antonio Pérez Testa
Hi Ray, My advice is to create 2 utility classes one to manage the process of the ArrayList and the Map. class MyArrayList extends ArrayList { private String name; public void setName(String name){this.name=name;} public String getName() {return name} } class MyHashMap extends HashMap { public

RE: [digester] Help needed

2004-11-29 Thread Ray Madigan
I should have posted earlier but I solved the problem very simply. Digester is a great tool! addObjectCreate ( tran/processMap, HashMap.class ); addCallMethod ( tran/processMap/process/top, put, 2 ); // The first argument is from the name attribute addCallParam ( tran/processMap/process/top, 0,

[sql] Metadata and columns sizes

2004-11-29 Thread Guillaume Nodet
I've got a problem when trying to use commons-sql to delete a schema created in hsqldb. For numeric columns, hsqldb does not return any information about the column size, so the JdbcModelReader (line 243 in the latest from cvs) affects null to the local variable columnSize and pass it to the

Re: [Digester] Digesting into a database

2004-11-29 Thread Michael Schuerig
On Monday 29 November 2004 08:42, Simon Kitching wrote: On Sun, 2004-11-07 at 12:08, Michael Schuerig wrote: http://www.schuerig.de/michael/java/dbdigester I finally got around to having a look at your code this evening; sorry it tooks so long. Unfortunately I feel that what you have

DBCP: recycle timeout

2004-11-29 Thread Michal Kwiatek
Dear all, Is it possible in DBCP to set a recycle timeout, i.e. a timeut after which a connection will be closed even if it is not stale? This would very useful in case of connection-related memory leaks; I looked through DBCP docs but I can't find this feature... Thank you very much for

[betwixt] element without name attribute in do betwixt file?

2004-11-29 Thread Christoph Gaffga
hi all, I have a collection containing differen instances. Now I output the XML using betwixt with a dot-betwixt-file containing: ?xml version=1.0 encoding=ISO-8859-15? info primitiveTypes=element element name=MyTest element name=list element name=item property=collection/

Re: [BeanUtils] Using a DynaClass as Class?

2004-11-29 Thread robert burrell donkin
On 28 Nov 2004, at 22:53, Michael Schuerig wrote: On Sunday 28 November 2004 23:11, robert burrell donkin wrote: On 27 Nov 2004, at 15:58, Michael Schuerig wrote: snip My concrete case is that I want to map XML type to a DynaClass in a call to WSIFService.mapType(QName, Class). i suspect that

Re: [betwixt] ObjectStringConverter .betwixt file

2004-11-29 Thread robert burrell donkin
On 29 Nov 2004, at 18:05, Matt Goodwin wrote: I have successfully been able to set a custom object string converter for a date format I have in java code using the BeanReader.getBindingConfiguration method (thank you for the documentation). However, I would like to be able to set this in the

Re: [betwixt] ObjectStringConverter .betwixt file

2004-11-29 Thread Matt Goodwin
Thanks for the response. I'll check it out and see what's going on. Matt robert burrell donkin wrote: On 29 Nov 2004, at 18:05, Matt Goodwin wrote: I have successfully been able to set a custom object string converter for a date format I have in java code using the

validation rule in one place

2004-11-29 Thread Per Lövdinger
Hi there, I have a question concerning Struts validator framework: If have the same attribute for example salary in two forms is there any possibility to define the validation rule in one place. So that my form-field can depend on that rule. regards form-validation formset form

Validator outside Struts

2004-11-29 Thread Per Lövdinger
Hi there, I would like to try out Validator outside Struts. I've got the initializion of validatorResources working. Does anyone have sample-code for using the resources and calling the validator,extracting validationResult ? thanks in advance