Actually its escaping it fine but it just doesnt work... The rendered html
looks like... Can anyone spot what's wrong? Don't see why this wouldn't set
the myNameProp.

<input type="image" onclick="strutsForm.myActionProp.value='takeaction';
strutsForm.myNameProp.value='NameBeforeQuote&#039;AfterQuote'; return true;"/>


On 12/1/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John,

Mississippi John Hurt wrote:
> <input type="image" onclick="strutsForm.myActionProp.value='takeaction';
> strutsForm.myNameProp.value='<c:out value="${result.myWeirdName}"/>';
> return
> true" property="takeaction" src="button.gif" >

Sorry, I didn't see that you were using <c:out>. Is there a Struts tag
that can help you with this?

If not, you might have to do it yourself by writing a short escaping
routine. You can even use the routine used in the patches to the bug I
mentioned in my last post.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFcH2k9CaO5/Lv0PARAtaFAJ9mZh3zmhkjIpCNg2HNrhHmFgCHwACaA8vA
TBRXD56KDBA4sHvCUZ44BQ8=
=KHXN
-----END PGP SIGNATURE-----

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


Reply via email to