Hello everybody,

 

 

I have a javascript dropdown calendar on one of my struts2 jsp. I have
bi-lingual application. So I need to read bundle files to switch
language. Please, does someone know how to use these files in
javascript.

 

Here is my js snippet:

 

<script language="JavaScript" type="text/JavaScript">

window.onload = function(){bscal.init()}

var bscal = {

    left : 0,

    top  : 0,

    width: 0,

    height: 0,

    format: "%d.%m.%Y",

 

    wds  : new
Array("%{getText('bscal_day1')}","tue","wen","thu","fri","sat","sun"),

...

 

The way like this "%{getText('bscal_day1')} (like on jsp) does not work.

 

I appreciate your help.

 

Best regards, Filippov Andrey

Reply via email to