Leon Messerschmidt wrote:
> Hi,
>
> At the moment it looks like this:
>
> if (value instanceof String)
> {
> return (String) value;
> }
> else if (value == null)
> // some more code
>
> I tried this and it seems to work for me:
>
> if (value instanceof String)
> {
> return (String) value;
> }
> else if (value instanceof List)
> {
> String strValue = value.toString();
> return strValue.substring (1,strValue.length()-1);
> }
> else if (value == null)
> // some more code
>
> ~ Leon
>
I don't know if I am missing something, but I will state it again:
If you are using Configurations to handle user generated ExtendedProperties files,
you have to warn them to use "\," instead of ",". This will kill the issue.
If you are programmatically adding entries to a Configurations, and want them to be
saved
correctly, see my post called "[PATCH] Saving ExtendedProperties" on how to fix this
bug.
ExtendedProperties uses "," as multiple value separator. If you input a "," , it
should be escaped with '\'.
See the javadocs of org.apache.turbine.util.ExtendedProperties.java
Sorry if I am missing your point, but it looks to me like you are taking the wrong
approach to the problem.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]