I think this works fine for u JS Function function _alert(key)
var url="/app/view/jsp/Alert.jsp?name="+key; window.showModalDialog(url,null,'dialogHeight:120px;dialogWidth:400px;scroll :no;status:no'); return false; } Alert.jsp <% String _key=null; if(request.getParameter("name")!=null) _key=request.getParameter("name"); %> <bean:message key="<%= _key %>" locale="app_sitelanguage" /> Just pass the key as a parameter for the function _alert(key) where u can get this key from property file Regards Varma ----- Original Message ----- From: "sridhar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 19, 2002 11:51 PM Subject: i18n messages in javascript js file My application uses javascript validations (at the client side) and all the validations are done in a validate.js file and displays the error messages with alerts. And all the messages in the javascript are hardcoded and the js file is used in many jsp's. Can i make the messages internationalized using struts frames work? if yes how can i do that ? thanks in advance. sridhar -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>