Hi Everybody...

My Task:
        Right now i am developing a web application whilch supports many 
languages.So i want to display the alert messages also in the language the 
user selects.For this, i am using  pop up window,for popup window i am 
passing the Application resource key as an argument.

In Alert.jsp File i wrote this code

<%@ taglib uri="/WEB-INF/struts-bean.tld" 
prefix=&quot;bean&quot; %&gt;<br>
&lt;html&gt;<br>
&lt;body&gt;<br>
&lt;SCRIPT LANGUAGE=JAVASCRIPT&gt;<br>
var keyA=window.dialogArgument<br>
var out=&quot;&lt;bean:message key='&quot;+keyA+&quot;'&gt;&quot; <br>
document.write(out);<br>
&lt;/SCRIPT&gt;<br>
&lt;/pre&gt;<br>
&lt;input type=button value=Cancel 
onclick=&quot;window.close()&quot;&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>
&nbsp;

But this is giving an erro "key +keyA not found in application resource

I appreciate if any one can help me to complete this task sucessfully.

Thanx!

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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

Reply via email to