Is JXPath support Boolean?

2007-02-01 Thread maomaode
Hi, I'm a new user of JXPath, my working env: JDK5, JXPath 1.2 I have a Nested bean class: Config.java which has a getter: CacheConfig getCache() { return this.cache; } The CacheConfig.java which has two getters: Boolean isEnable() { return this.enable; } String getDir() { return

Re: JXPath nested property

2007-02-03 Thread maomaode
Hi, Hi, I have the following 2 bean definitions: Country { int id; String name; } State { int id; String name; Country country; } If I have a *ListState*, how can I get every state that has a *Country* having id = 2 ? I tried the following XPath expression using the

Re: Is JXPath support Boolean?

2007-02-06 Thread maomaode
Hi Matt, I appreciate your help. I have change the is*** to get***, seems this is the easiest way to work around, and another benefit from get a string instead of boolean is that i can define my own TRUE or FALSE. So, i think that's it. Thanks, James. --- maomaode [EMAIL PROTECTED] wrote

Re: [httpclient_common]_why httpclient's speed is the same with JDK httpurlconnection

2007-02-07 Thread maomaode
I think the HttpClient essentially use the urlconnection, then i would ask why httpclient will faster than urlconnection? I think the benefit of HttpClient is that it manage the connection, that make your code more neat, you can focus on the business logic... Hi, I have a problem when trying to

Re: HttpClient: Socket(hostName,) or Socket(InetAddress,)

2007-03-08 Thread maomaode
Hi, I think it can improve the performance, when we do host lookup it require extra cost, if we can cache the hostname-ip map, then if there is same hostname, we can use ip directly, no dns resolve will be required. I guess it improve the performance. Why? Jakarta Commons Users List

Re: HttpClient: Socket(hostName,) or Socket(InetAddress,)

2007-03-11 Thread maomaode
On 3/8/07, maomaode [EMAIL PROTECTED] wrote: Hi, I think it can improve the performance, when we do host lookup it require extra cost, if we can cache the hostname-ip map, then if there is same hostname, we can use ip directly, no dns resolve will be required. I guess it improve the performance

[HttpClient] How to turn off the http persistent connection ?

2007-07-15 Thread maomaode
Is there a way/config to turn off the persistent connection? The persistent connection is a default value, right? both in the simple manager and multi threaded manager, right? Is that mean that i have to write my own connection manager? i guess there must have one already Thanks mao