Re: User Defined variable and BeanShell function

2006-08-05 Thread Richard Sullivan
;m > > > new to beanshell, but I suspect you want to use vars.get("Attributes"} > > > and > > > then vars.put("Attributes", newstr) to replace the value in Attributes > > > with > > > your new one. Or if you're just trying to use

Re: User Defined variable and BeanShell function

2006-08-01 Thread amelaao
ely without > > storing it, perhaps just returning it like you are would work (that > > would > > make sense, but I'm not familiar with that syntax). > > -- > > View this message in context: http://www.nabble.com/User-Defined-variable-and-BeanShell-function-tf2036

Re: User Defined variable and BeanShell function

2006-08-01 Thread amelaao
) to replace the value in Attributes > with > your new one. Or if you're just trying to use it immediately without > storing it, perhaps just returning it like you are would work (that > would > make sense, but I'm not familiar with that syntax). > -- > View this message in

Re: User Defined variable and BeanShell function

2006-08-01 Thread amelaao
ributes", newstr) to replace the value in Attributes with your new one. Or if you're just trying to use it immediately without storing it, perhaps just returning it like you are would work (that would make sense, but I'm not familiar with that syntax). -- View this message in context: h

Re: User Defined variable and BeanShell function

2006-08-01 Thread Yanroy
;re just trying to use it immediately without storing it, perhaps just returning it like you are would work (that would make sense, but I'm not familiar with that syntax). -- View this message in context: http://www.nabble.com/User-Defined-variable-and-BeanShell-function-tf2036135.html#a56027

User Defined variable and BeanShell function

2006-08-01 Thread amelaao
I'm trying to manipulate a string (replace some characters) using BeanShell function and store this new string as a user defined variable. This is the code I have but it does not do what it is supposed to do: ${__BeanShell(String str = new String("${Attributes}"); String newstr = str.replace("<"\