Have you tried JSTL's replace tag?

http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fn/replace.fn.html


2008/8/28, Richard Sayre <[EMAIL PROTECTED]>:
> I'm trying to call the String replace method from OGNL.  I can't find
> any specific examples on how to do this.
>
> I tried the following as a test:  [EMAIL PROTECTED]@toString()
>
> This worked ok.  My problem is I don't know how to pass string
> literals to the method.
>
> Here is my current code:
> <s:property  value="[EMAIL PROTECTED]@toString()"/>'
>
>
> Here is what I would like to call:
> [EMAIL PROTECTED]@replaceAll("'",
> Matcher.quoteReplacement("\\'"))
>
> (I am replacing a single quite with the JavaScript escape character
> for single quote \')
>
> If some one can help me out or point me to some good examples that
> would be great.
>
> Thank you,
>
> Rich
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to