RE: OGNL and Java Methods String Arguments

2008-08-28 Thread Martin Gainty
a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > To: user@struts.apache.org > From: [EMAIL PROTECTED] > Subject: Re: OGNL and Java Methods String A

Re: OGNL and Java Methods String Arguments

2008-08-28 Thread Dave Newton
--- On Thu, 8/28/08, Richard Sayre wrote: > 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: In addition to the other responses... if you have a string already you can just call replaceAll on it

Re: OGNL and Java Methods String Arguments

2008-08-28 Thread Gabriel Belingueres
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

Re: OGNL and Java Methods String Arguments

2008-08-28 Thread Laurie Harper
Wouldn't do what you need? L. Richard Sayre wrote: 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 lite

OGNL and Java Methods String Arguments

2008-08-28 Thread Richard Sayre
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: ' Here i