Re: BEAN UTILS : dealing with enumerations

2009-03-12 Thread James Carman
Would registering a converter for type Enum work? You just have to make sure you convert to the appropriate class at runtime (the class that's passed in) using the static method on the Enum class. I don't know if ConvertUtils is smart enough to know that if you register something for a supertype

Re: [CLI1.x] quoted arguments split into multiple values

2009-03-12 Thread Michael Heuer
J?rg Schaible wrote: > Hi Michael, > > Michael Heuer wrote: > > > Hello, > > > > With cli 1.1 and the java class wrapped with a bash script, quoted > > arguments are split into multiple values. > > > > myclass.sh: > > > > #!/bin/bash > > > > java MyClass $@ > > > > > > e.g. > > > > $ myclass.sh --

Re: [CLI1.x] quoted arguments split into multiple values

2009-03-12 Thread Jörg Schaible
Hi Michael, Michael Heuer wrote: > Hello, > > With cli 1.1 and the java class wrapped with a bash script, quoted > arguments are split into multiple values. > > myclass.sh: > > #!/bin/bash > > java MyClass $@ > > > e.g. > > $ myclass.sh --foo "Foo Bar" > > > Option foo = ...; > Options o

[CLI1.x] help option doesn't work if there is a required option

2009-03-12 Thread Michael Heuer
Hello, My use case is -h,--help text prints to STDOUT and command line errors print to STDERR. This works fine in the simple case Options options = new Options(); HelpFormatter helpFormatter = new HelpFormatter(); Option help = new Option("h", "help", false, "print help text to STDOUT"); help.se

[CLI1.x] quoted arguments split into multiple values

2009-03-12 Thread Michael Heuer
Hello, With cli 1.1 and the java class wrapped with a bash script, quoted arguments are split into multiple values. myclass.sh: #!/bin/bash java MyClass $@ e.g. $ myclass.sh --foo "Foo Bar" Option foo = ...; Options options = ...; CommandLineParser parser = ...; CommandLine commandLine = p

Re: BEAN UTILS : dealing with enumerations

2009-03-12 Thread Paul Hussein
Good suggestion, I thought of that, but its a bit painful to register a converter for each Enum as I have lots of Enums. Is there a way to register a generic routine for all Enums?? Thanks Paul. On Thu, Mar 12, 2009 at 3:32 PM, James Carman wrote: > Can you register your own converter? > > On

[jsvc] jsvc fails on AIX: Cannot find any VM in Java Home

2009-03-12 Thread Christian Wolfhagen
Managed to compile jsvc on AIX 5.3.0 with IBM java5 by modifying support/appsupport.m4 to include aix*, but when I try to run my class jsvc fail to locate the JVM library file. Running with the -debug flag reveals that jsvc is looking for a jvm.cfg, but such a file is not present in the IBM java p

Re: [SCXML] Transition/Var question

2009-03-12 Thread Rahul Akolkar
On Thu, Mar 12, 2009 at 11:01 AM, Linda Erlenhov wrote: > Hello again. > > I have made som improvements in my code, but now new intresting and funny > things have happened instead. > > I have this very simple file: > -- > http://www.w3.org/2005/07/scxml"; version="1.0"

Re: [SCXML] More about evaluating conditions

2009-03-12 Thread Rahul Akolkar
On Thu, Mar 12, 2009 at 7:03 AM, Anna Södling wrote: > Hello, > > Another question popped up...about conditions and AND and OR-operations. > More likely, how to express them in SCXML. Is it possible to write for > example "data1 and data2" or what does the syntax look like for these > two operatio

digester newby question/problem

2009-03-12 Thread Juza1
Hi to all, I'm new to digester and I have the following problem: I have such an XML File to parse: 2009-03-12T14:00:14Z http://url.url.org/abc.asp oai:oai.ethz.ch:e-collection/005583701 2008-12-08 2009 http://www.openarchives.or

Digester trimming leading and trailing space from XML body text

2009-03-12 Thread Jay Khimani
Hi, I'm relatively new to digester. I'm in a situation where I'm parsing the XML with digester and when calling bean-property-setter-rule, it trims leading and trailing space from the XML body. This is exactly what I dont want. I want spaces to retail. Is there anyway to achieve this for XML rule

[SCXML] Transition/Var question

2009-03-12 Thread Linda Erlenhov
Hello again. I have made som improvements in my code, but now new intresting and funny things have happened instead. I have this very simple file: -- http://www.w3.org/2005/07/scxml"; version="1.0" initialstate="7"> --- And have writ

Re: BEAN UTILS : dealing with enumerations

2009-03-12 Thread James Carman
Can you register your own converter? On Thu, Mar 12, 2009 at 10:25 AM, Paul Hussein wrote: > Yes, but I dont have a handle to the type, I just have the string. I want > beanutils to do the > Type.valueOf("One") > > Thanks > > Paul. > > On Wed, Mar 11, 2009 at 1:06 PM, Andrew Hughes wrote: > >> O

Re: BEAN UTILS : dealing with enumerations

2009-03-12 Thread Paul Hussein
Yes, but I dont have a handle to the type, I just have the string. I want beanutils to do the Type.valueOf("One") Thanks Paul. On Wed, Mar 11, 2009 at 1:06 PM, Andrew Hughes wrote: > Off the top of my head... couldn't you do something like... > > Type.valueOf("One") > > Hence do the following

[SCXML] More about evaluating conditions

2009-03-12 Thread Anna Södling
Hello, Another question popped up...about conditions and AND and OR-operations. More likely, how to express them in SCXML. Is it possible to write for example "data1 and data2" or what does the syntax look like for these two operations? And is it possible to have more than one operation, like "da

Re: Net.NNTP: Different behavior using different newsserver

2009-03-12 Thread Zender00
Hi Rory, I tried to use tcpdump to capture the output from my application and the server input. But I were not able to notice significant varieties... It seems that the server send empty responses. Maybe I have to access the nntp server in different ways? I already noticed that newsreader (e.g.

Digester trimming leading and trailing space from XML body text

2009-03-12 Thread Jay Khimani
Hi, I'm relatively new to digester. I'm in a situation where I'm parsing the XML with digester and when calling bean-property-setter-rule, it trims leading and trailing space from the XML body. This is exactly what I dont want. I want spaces to retail. Is there anyway to achieve this for XML rule