You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Marc DEXET <Ma...@dsi.cnrs.fr> on 2004/05/05 12:12:38 UTC
[betwixt] How to use comma-separated attribute value
Hello people.
How can I use comma-separated (Tomcat like) attribute value to map
value-to-string-array ?
Example : I get a attribute like this :
<element att="val1, val2, val3" >
and I would have a parsing output Bean with
String[] atts = { "val1", "val2", "val3" };
Is it possible ?
Thanks
............................................
Marc DeXeT
Direction des Systèmes d'Informations
Centre National de la Recherche Scientifique
~ * ~
Information System Direction
National Center for Scientific Research
http://www.cnrs.fr
............................................
- I haven't forgotten Jelly, I have just no time -
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [betwixt] How to use comma-separated attribute value
Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
you'll need a custom ObjectStringCoverter strategy that knows how to
perform this conversion. there should be some documentation about how
to do this on the website (http://jakarta.apache.org/commons/betwixt).
if not, let us know and we'll do something about it :)
- robert
On 5 May 2004, at 11:12, Marc DEXET wrote:
> Hello people.
>
> How can I use comma-separated (Tomcat like) attribute value to map
> value-to-string-array ?
>
> Example : I get a attribute like this :
> <element att="val1, val2, val3" >
>
> and I would have a parsing output Bean with
>
> String[] atts = { "val1", "val2", "val3" };
>
> Is it possible ?
>
> Thanks
>
> ............................................
> Marc DeXeT
> Direction des Systèmes d'Informations
> Centre National de la Recherche Scientifique
> ~ * ~
> Information System Direction
> National Center for Scientific Research
> http://www.cnrs.fr
> ............................................
>
> - I haven't forgotten Jelly, I have just no time -
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org