You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Filip Hanik - Dev Lists <de...@hanik.com> on 2006/10/12 18:39:10 UTC
Digester question
would the digest work with
<Element someProperty="5,6,32,66"/> or <Element someProperty="{5,6,32,66}"/>
public class MyElement {
public void setSomeProperty(byte[] data) {....}
}
??
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: Digester question
Posted by Remy Maucherat <re...@apache.org>.
Filip Hanik - Dev Lists wrote:
> would the digest work with
>
> <Element someProperty="5,6,32,66"/> or <Element
> someProperty="{5,6,32,66}"/>
>
> public class MyElement {
> public void setSomeProperty(byte[] data) {....}
> }
I don't think there's a cast to byte[] (not sure though), but you could
have a setSomeProperty(String) method that does it, and calls the other
method. Or you can expand the digester a bit (but I would think it would
be logical to cast that sort of property to a collection too).
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org