Hello Milt!
ME> Another possibility is to define the param (in web.xml) as a
ME> comma-separated value (csv) and parse it when you get it. For
ME> example:
ME> <init-param>
ME> <param-name>team</param-name>
ME> <param-value>GoodGuys,Enemy</param-value>
ME> </init-param>
ME> Then:
ME> ...
ME> String teamNameCSV = config.getInitParameter("appName");
ME> String[] teamNames = StringUtils.splitCSV(teamNameCSV);
ME> ...
ME> (StringUtils is my own class; it contains mostly static functions,
ME> including ones to do this parsing.)
A common approach is to use java.util.StringTokenizer for this
purpose.
ME> Note: I haven't actually tried this, I assume there are no gotchas,
ME> like that commas aren't allowed in param values.
No gotchas, take my word :-)
--
Best regards,
Anton mailto:[EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html