You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Richard Raquepo <rr...@primeorion.com> on 2004/02/10 12:34:03 UTC

bean:message key in javascript

i have this entry on one of my property files that show a message in korean.

error.client.register.exist=<li>&#45320;&#44032;&#45936;&#51060;&#53440;&#48288;&#51060;&#49828;&#50504;&#50640; &#51316;&#51116;&#54616;&#45716; &#51060;&#48120; &#46321;&#47197;&#54620;&#44163;&#51012; &#54644;&#48372;&#44256; &#51080;&#45716; &#51204;&#51088; &#50864;&#54200; &#51452;&#49548;!</li>

i was wondering how i can show this on the client side using html.

using this:
<script>
var msg = <bean:message key="error.client.register.exist"/>
</script>

only shows the actual number i.e. "<li>&#45320;&#44032;&#45936....."

is it possible or is there a way that this will be converted on to the correct characters so that javascript will be able to show the actual msg.

thanks a lot.

richard