<script> var myMessage = '<bean:message key="form.select" />';
function sayit() { alert(myMessage); } </script> On 3/14/07, Nitin Ahuja <[EMAIL PROTECTED]> wrote:
Hi Dave, What is DWR ? I found a simple wayout, but there is dependency i.e I have to assign the the value of message resource key to an html object in jsp. Here is what i did.. in jsp <html:button onclick="javascript:display(this);" property="xyz" ><bean:message key="form.select" /></html:button> and in java script function display(button) { alert(button.value); } this will display the value of key "form.select" thanks, -Nitin On 3/14/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Nitin Ahuja <[EMAIL PROTECTED]> wrote: > > Does anyone know how can I acces Message > > ResourceBundle key/values in Javascript? > > ?! > > You'd have to pass in something that [had] rendered a > JavaScript representation of the bundle. > > I haven't given it any thought, but you *might* be > able to use DWR to do this in a relatively transparent > way. > > d. > > > > > ____________________________________________________________________________________ > Never miss an email again! > Yahoo! Toolbar alerts you the instant new Mail arrives. > http://tools.search.yahoo.com/toolbar/features/mail/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- ........... "Yesterday I dared to struggle, today I dare to win." --- Bernadette Devlin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- "Hey you! Would you help me to carry the stone?" Pink Floyd