struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iv_va_unq <ihor...@gmail.com>
Subject Struts+JavaScript i18n
Date Thu, 22 Nov 2007 08:58:45 GMT

 Hi friends I need your help 

<<< Application.properties >>> 
pa.filter.show=Show 

<<< *.jsp >>> 
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%> <%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
  <html> 
    <head>
     <meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
     <title>Insert title here</title>

   <script language="javascript"> 
    function confirmDelete() { 
      alert('<bean:message bundle="pa/acornpa" key="pa.filter.show"/>'); 
      return false; 
    } 
   </script> 
</head> 

<body>
   <html:link onclick="return confirmDelete();"
action="/blabla.do?method=doSomething" paramId="id" paramProperty="id"
transaction="true"> 
   Our Link 
</html:link> 
</body> 
</html> 

It worked correctly and showed Show (value of pa.filter.show) but when I use
<script language="javascript" src="js/alloc_common.js" ></script> 
alloc_common.js contain 
  function confirmDelete() { 
   alert('<bean:message bundle="pa/acornpa" key="pa.filter.show"/>'); return
false; 
   } 

It show <bean:message bundle="pa/acornpa" key="pa.filter.show"/> 
How can it fix ?
-- 
View this message in context: http://www.nabble.com/Struts%2BJavaScript--i18n-tf4855150.html#a13893174
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message