[HTTPClient] 3.0 Unsettings proxy

2005-01-31 Thread Kedar Panse
How do i unset a proxy for a client object? Using client.getHostConfiguration().setProxy(proxyhost, proxyport); will setting it to blank work and a valid way? I want to skip to next proxy if 1 doesnt work Thanks in advance Kedar

RE: [DBCP] Force active connections closed in BasicDataSource

2005-01-31 Thread Larry Young
Megan, We had a similar problem. The legacy DB that we were interfacing with would periodically go down for backups and sometimes go completely offline. This would at times hang the DB because it thought that we still had an open connection, and at other times it would leave dead

BeanUtils and List

2005-01-31 Thread Krishna Patil
And I have been using PropertyUtils in my projects. And personally I found it very useful. However, I also found it difficult to use PropertyUtils especially with a List when the List has some objects as elements that I want to access a property from. For example, public class A { private

Re: BeanUtils and List

2005-01-31 Thread Kishore Senji
Object object = PropertyUtils.getProperty( instance of A , list.c.attrC1); Assuming that you have a getList() method on class A, your property should be list[0].c.attrC1. ie. You should tell PropertyUtils which index you are interested in explicitly.

Re: [DBCP] Force active connections closed in BasicDataSource

2005-01-31 Thread Dirk Verbeeck
No, there isn't a method doing that. Like you have noticed, the close() method only closes the idle connections in the pool, the active connection will be closed when they are returned to the pool. If you want to implement this feature, then start with the

[commons-validator] I18n question

2005-01-31 Thread Eric Giguere
Hi all Got a small question. I'm trying now to add some validations in my validation.xml file that are specific to a language: French. The issue I have now is that when I create a new formset with the language specified, the framework throws me an exception : org.apache.jasper.JasperException:

Re: [commons-validator] I18n question

2005-01-31 Thread David Graham
Comment 1 in this bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=16920 indicates that fields not defined in a localized formset are validated with the rules from the base formset. So, maybe you need to declare each formset for each language but leave out all of the fields from the french

[BeanUtils] add item to a list

2005-01-31 Thread marc lan
Hi guys ! Before to make a feature request (and be thrown out :) I would to be sure of one thing : it's actually impossible to add an item to a indexedProperty using BeanUtils, is it ? I mean, I get a bean with a list as public class MyBean { private List itemList= new ArrayList(); public

Re: [betwixt] object-string conversion .betwixt file

2005-01-31 Thread Matt Goodwin
Thanks for the response. I briefly took a look at flavour, but it appeared to be something that wasn't supported currently and not having looked at a roadmap or anything I was a little nervous to use it since I didn't know what the actual intended use was (outside of one post that briefly

Re: [BeanUtils] add item to a list

2005-01-31 Thread java
Marc DeXeT wrote: I would use a BeanUtils or PropertyUtils method to add my item. Set property doesn't work because of it set item at position, and if position greater than list size, you get this old good IndexOutOfBoundsException. I think the writer of the bean class is responsible for

Need a little help

2005-01-31 Thread Luke Shannon
Hi; I am using Digester to extract some XML information. I have run into problems and need some help. Here is my schema: VERSION ITEM NAME=category TYPE=textCategory 4/ITEM ITEM NAME=provider TYPE=textProvider/ITEM ITEM NAME=progress_ref TYPE=text11008/ITEM ITEM NAME=name

Re: Need a little help

2005-01-31 Thread Kishore Senji
public Version digest() throws IOException, SAXException { digester = new Digester(); digester.setValidating(false); digester.addObjectCreate(DATA/VERSION, Version.class); digester.addObjectCreate(DATA/VERSION/ITEM, Item.class); digester.addSetProperties(DATA/VERSION/ITEM, name,