;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
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
) 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
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 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
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("<"\
6 matches
Mail list logo