[httpclient]

2006-08-09 Thread Trevor Miller
Hi All, I'm using HttpClient to download a simple XML document from a jsp page, I want to be able to show a progress bar if it takes a long time. In order to test this, i write a simple JSP with some calls to Thread.sleep to simulate network latency and used the following code:

RE: AW: Commons Configuration: delete entry

2006-08-09 Thread Christian Koncilia
Oliver, this is really strange. I promise that the behaviour of the Configuration package was exactly as I wrote. As you mentioned, I changed the code PropertiesConfiguration c = new PropertiesConfiguration(PROPERTIESFILE); c.clearProperty(entry); c.save(); into PropertiesConfiguration c =

dbcp follow-on question... logging or debug output?

2006-08-09 Thread Denis Haskin
I could have sworn I had seen something somewhere that talked about how to get some debug logging out of dbcp, e.g. to know about connections borrowed from pool, returned, etc. For the life of me I can't find that anywhere. Even browsing the dbcp source doesn't seem to indicate anything.

Re[2]: [httpclient]

2006-08-09 Thread Christian Hufgard
snip for (int i = 0; i 100; i++) { out.println (event title=\Event 5\ time=\200609131430\ id=\5\new Event/event); try { Thread.sleep (500); } catch (InterruptedException ex) { ex.printStackTrace(); }

[validator] Problem with regular expression for mask validator

2006-08-09 Thread David Cagle
Hi everyone! I'm trying to use the mask validator for a field but running into a JavaScript error when the code is ran. Here is a snippet from my validation.xml: form name=gotoPageForm field property=selectedTopic depends=required,mask msg name=required

Digester and Inheritance

2006-08-09 Thread German Balbastro
I have an object model whith an abstract parent class Class1 and two implementations Class2 and Clas3. I don't know how i can create the implementations. For example i have this xml file: Class1 ... fields of class1 ... Class2 ... fields of class2 ... / Class2 / Class1

RE: Digester and Inheritance

2006-08-09 Thread James Carman
Can't you add a create rule with a path of Class1/Class2 for Class2 and a create rule for Class1/Class3 for Class3? -Original Message- From: German Balbastro [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 1:19 PM To: commons-user@jakarta.apache.org Subject: Digester and

RE: Digester and Inheritance

2006-08-09 Thread German Balbastro
Yes, I don't know how to creates an instance of Class2 when found the tag Class2 and set the properties of class1 in Class2. For example: Class Class1{ String code } Class Class2 extends Class1{ String name; } Class Class3 extends Class1{ String type; } And de xml: Class1 code1/code

Re: Digester and Inheritance

2006-08-09 Thread Fabian Sergio de Rosa
Class2 propfromclass1value/propfromclass1 propfromclass2value/propfromclass2 /Class2 Class3 propfromclass1value/propfromclass1 propfromclass3value/propfromclass3 /Class3 you don't need to declare your Class1 in the xml file. and you must add the rules to set using api or xmlrules.xml 2006/8/9,

Commons Validator

2006-08-09 Thread Avneesh Jain
Once a form has been defined in the xml file, is it possibel to change the validations done for the form at runtime. I have a use case where I would like to remove certain validations attached to a form at runtime. Thanks Avneesh