I do what Ted does, but extend it down a level, putting a second string
tokensizer in the while loop to tokenize the following format:

key1=value1;key2=value2;key3=value3

That way they're not positional.  I also put them in map so I retrieve them
based on a key.  

> -----Original Message-----
> From: Ted Husted [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 3:43 PM
> To: Struts Users Mailing List
> Subject: Re: "parameter" attribute in the action-mapping... 
> what is it?
> 
> 
> You can use a deliminated list of items, and then use the String
> tokenizer to pull them out. 
> 
>         StringTokenizer helperClasses =
>             new StringTokenizer(mapping.getParameter(),";");
>         int i = -1;
>         Object[] helpers = new Object[helperClasses.countTokens()];
>         while (helperClasses.hasMoreTokens()) {
>             String helperClass = helperClasses.nextToken().trim();
>             if ((helperClass==null) || (helperClass.length()==0))
> continue;
>               // ...
>         }
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to