Pergunta

Is it possible to have a variable that is string list via the Context.xml file? For example, I'm currently doing this in my context.xml file:

    <Environment name="actiontypes" value="INSERT,DELETE,UPDATE,INITIAL" type="java.lang.String" />

I read that into a tokenizer and break it down by comma delimited. Anyway I could just store this straight as an array or list?

Foi útil?

Solução

There is no direct way of storing into list for values. But as alternative to tokenizer you can simplify like this

String[] values = value.split(",")

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top