tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <r...@apache.org>
Subject Re: Digester question
Date Thu, 12 Oct 2006 17:59:38 GMT
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


Mime
View raw message