Terminal & locale problems

I have troubles with terminals (urxvt and xterm, same behaviour) - mc has strange characters instead linesd, vim gets sometimes text garbled. I tried to fix this but nothing works. What is strange - when I start urxvt from urxvt, the problems are gone (same for xterm). I triple-checked locale settings. I dumped varibles form urxvt, run new urxvt from it and dumped variables once more and them compare. No results. I found dirty workaround - command printf '\33]701;%s\007' $LC_CTYPE in .bashrc force correct locale for urxvt.
But I would really like to find source of this troubles - any idea where to look would be wellcomed.
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8
$  locale -a
C
cs_CZ
cs_CZ.iso88592
cs_CZ.utf8
czech
en_US
en_US.iso88591
en_US.utf8
POSIX

To enable the traps-
snmp-server enable traps snmp linkup linkdown
To view them via the CLI-
logging monitor 6

Similar Messages

  • Locale problem

    Hi,
    I experience various locale problems on Solaris 10.
    One of them relates to the thousand separator of the fr_CA locale : its value is A0 (hex) rather than a space. It can be easily reproduced by the following command :
    LC_ALL=fr_CA; export LC_ALL; locale -ck LC_MONETARY | grep thousands | od -x -c | grep a0
    Solaris 10 hosts with patch 119397-06 or 119397-07 return
    0000020 703d 22a0 220a
    Systems with patch 119397-05 do not seem to be affected.
    Is anyone affected by the same problem?
    Besides that, locale -ck LC_MONETARY gives a quite different output depending on the OS version (Solaris 9 or 10) or patch level (for Solaris 10).
    Thanks in advance,
    Olivier

    bump
    using
    new Locale("ja", "JP");
    and making a new formatted date gives me
    2007/03/23
    for japan
    and
    March 23, 2007
    for US_EN
    so it makes me think its missing some translations, any idea how to get the translations into the whatever so this works?

  • Servererror: 451 Temporary local problem - please try later (exim / @hotmail)

    Hello,
    a customer of mine has issues sending email to @hotmail/@live/@outlook mail addresses.
    the problem only occurs with these Microsoft addresses!
    when sending an email they get an error email reply (generated from within outlook) from "systemmanager"
    saying "Servererror: 451 Temporary local problem - please try later"
    just like Graylisting, when the costumer sends the email for the second time all works fine.
    My exim server log says:
    2014-05-27 15:03:19 H=(MAC01) [37.xxx.xx.130] F=<[email protected]> A=login:[email protected] temporarily rejected RCPT <[email protected]>: host lookup did not complete
    2014-05-27 15:03:22 H=(MAC01) [37.xxx.xx.130] incomplete transaction (QUIT) from <[email protected]>
    can somebody tell me how to fix this?
    and or point me in the right direction where the problem might be (Microsoft, my server, costumer mac)!

    Hi,
    To narrow down the issue, please do the following checks:
    1. What’s you Outlook client, Outlook 2013 or Outlook 2011 for Mac?
    2. Does the issue only happen to one specific user? How about other users?
    3. What’s the problematic user’s account used to send messages? Exchange account or other webmail account such as Hotmail, Gmail?
    4. Please close Outlook and access the webmail to send test messages to @hotmail/@live/@outlook mail addresses and check whether the issue persists.
    5. If the issue doesn’t happen in webmail, please also create a new Outlook profile to have a try:
    http://support.microsoft.com/kb/829918/en-us
    Thanks,
    Winnie Liang
    TechNet Community Support

  • I'm having problems with my internet connection after installing OS X Lion. Is this a known problem or just a local problem?

    I'm having problems with my internet connection after installing OS X Lion. Is this a known problem or just a local problem?
    After +/- 10 to 15min my connection is gone.
    Does anyone have a sollution?

    Lots of people are having the same problem, you're not the only one, belieeeeve me.
    Just Googling the problem gets you tons of people complaining about the same thing, SOMETHING is up with Lion what wasn't happening with Snow Leopard. i just bought a new Imac and it CAME with Lion, so i started experiencing this internet dropout immediately.
    It's been going on for the most of a year it looks like (at least by the dates from the threads i've been reading)
    So your best bet is to fiddle with the System Preferences and read what other people have used to make theirs work. i'm doing that myself right now.  I already posted  a similar thread last night trying to figure out why my connection kept on dropping, i got a reply which linked me to a site. i followed the instructions there, so far so good, but i'm just being cautiously optimistic.
    i'm gonna call Apple today and see if they've found anything, though seeing as this is a problem right out of the box there may not be an immediate solution. Good luck hunting for a solution :3
    Site:
    http://osxdaily.com/2011/11/06/lion-wi-fi-problems-solution-mac/?utm_source=feed burner&utm_medium=feed&utm_campaign=Feed%3A+osxdaily+%28OS+X+Daily%29&utm_conten t=FaceBook

  • Locale problems

    Hi,
    I'm on a fresh installed Arch-X86_64/KDE.
    In order to maintain the main English (US) language, and add (initially missing) capability to display file names in Hebrew as well I:
    1. Created a /etc/locale.gen file (didn't exist initially) with:
    #en_US ISO-8859-1
    en_US.UTF-8
    #he_IL.UTF-8    UTF-8
    #he_IL    ISO-8859-8
    2. As root, ran locale-gen and rebooted.
    Now, I get the desired Hebrew file names, yet, running local yields some errors (see below).
    How can I fix this?
    Thanks
    -----------output of locale-----------
    $ locale
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=

    Hello,
    I have also been experiencing locale problems.  I've taken a look at all file contents, re-installed glibc, all with no impact.  Below, I've included contents of relevant files, copy and pasted from the files.
    rc.conf:
    LOCALE="en_US.UTF-8"
    DAEMON_LOCALE="yes"
    locale.gen:
    en_US.UTF-8 UTF-8
    en_US ISO-8859-1
    re-install of glibc:
    (1/1) upgrading glibc [######################] 100%
    Generating locales...
    en_US.UTF-8... done
    en_US.ISO-8859-1... done
    Generation complete.
    So I did some additional investigation. 
    /etc/locale.gen
    mentions
    /usr/share/i18n/locales
    and
    /usr/share/i18n/charmaps
    So I took a look at their contents:
    cd /usr/share/i18n/charmaps
    ls UT*
    UTF-8.gz
    cd ../locales
    ls en_U*
    en_US
    I do not see a file named
    en_US.UTF*
      Should there be?

  • Ttm locale problem

    When I start ttm(http://code.google.com/p/ttm/) (via terminal) I get this:
    Using locale: (null)
    and ttm doesn't start further.
    I have configured my locales in rc.conf.
    Does anybody know what's wrong?

    fk wrote:
    I have the same Problem
    [flo@orion ~]$ tint
    Using locale: (null)
    (process:31447): Pango-CRITICAL **: pango_font_description_from_string: assertion `str != NULL' failed
    Segmentation fault
    [flo@orion ~]$
    Last few lines from strace tint
    NLY) = 4
    fstat64(4, {st_mode=S_IFREG|0644, st_size=72, ...}) = 0
    read(4, "\4\374\2\374\1\0\0\0H\0\0\0 \0\0\0008\0\0\0\0\0\0\0008"..., 72) = 72
    close(4) = 0
    stat64("/usr/share/fonts/encodings/large", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    open("/var/cache/fontconfig/5ca8086aeacc9c68e81a71e7ef846b3b-x86.cache-2", O_RDONLY) = 4
    fstat64(4, {st_mode=S_IFREG|0644, st_size=88, ...}) = 0
    read(4, "\4\374\2\374\1\0\0\0X\0\0\0 \0\0\0H\0\0\0\0\0\0\0H\0\0"..., 88) = 88
    close(4) = 0
    stat64("/usr/lib/pango/1.6.0/modules/pango-basic-fc.so", {st_mode=S_IFREG|0755, st_size=12086, ...}) = 0
    open("/usr/lib/pango/1.6.0/modules/pango-basic-fc.so", O_RDONLY) = 4
    read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\16"..., 512) = 512
    fstat64(4, {st_mode=S_IFREG|0755, st_size=12086, ...}) = 0
    mmap2(NULL, 11804, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7924000
    mmap2(0xb7926000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1) = 0xb7926000
    close(4) = 0
    open("/usr/share/fonts/TTF/times.ttf", O_RDONLY) = 4
    fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
    fstat64(4, {st_mode=S_IFREG|0644, st_size=330412, ...}) = 0
    mmap2(NULL, 330412, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb78d3000
    close(4)
    = 0
    Try the new svn version of TTM, this problem was caused in the older version. The newer one fixes this, I had the same problem. You will also need to use the new config example that is provided with the svn.
    Last edited by twiistedkaos (2007-06-07 16:50:07)

  • Terminal Path Problem after HD replacement (Git, ls)

    I recently had my MBP looked at by the Genius Bar, and they determined that I needed a new Hard Drive.  After getting my machine back, I restored it from Timemachine, and all was well.
    When I opened up Terminal for the first time to work on a develoment project, I found that Terminal wouldn't recognize git commands, even though git was installed.  When running a git status in my development folder, I received the following error:
    -bash: git: command not found
    I did some googling and found that it was probably due to my bash profile PATH.  I ran echo $PATH, which resulted in:
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
    Someone indicated that I need to update my .bash_profile, but it didn't seem to exist.  I created it and included the following line, which is where git is installed:
    export PATH=/usr/local/git/bin
    My path then became:
    /usr/local/git/bin
    That fixed my Git issue and all was well.  Until I tried to list (ls) the folders in a directory:
    -bash: ls: command not found
    I'm having a hard time trying to figure out just exaclty what to do next in order to have all Terminal functionality back.  I'm not all that savy with Terminal, so any help at all would be appreciated.  Many thanks in advance.

    You are a god among men, a gentleman or lady, and a scholar.  Thank you!

  • Date/locale problems; first day of week / browser language

    Hi,
    I've been trying to create an event calendar PL/SQL portlet. My problem is that it reacts to browser language or something, so it goes all screwy when viewed with browsers in another language.
    How can I force my portlet to be finnish and finnish ONLY. I DO NOT want it to change (first day of the week monday or sunday) depending on what browser the user is using. I have tried to use the third parameter to to_char(p_date, 'dd.mm.yyyy','NLS_DATE_LANGUAGE = Finnish') in all places but it has no effect. Database locale is correct ( I think, I'm not the admin) but still it happens. Chrome, Firefox, IE show different stuff depending on the browser language.
    I'll admit it is not the most elegant coding ever (if it were I would have taken this into account and dealt with it!) but is there any way to just force my dates and date variabes to be finnish, period.
    Edited by: Baguette on Mar 9, 2010 10:37 AM

    Got it.
    For public sessions, Portal will indeed investigate the browser language. Pending on the browser language, Portal can display in specific languages. Only when users login and set a language explicitly, will we maintain the language setting, unless the user switches browsers again.
    The Portal DAD settings will indeed overwrite your system wide setting of NLS_TERRITORY. The dads.conf will have something like AMERICAN_AMERICA.UTF8. If you want to overrule this in your portlet, you need to find a way of overruling the NLS_TERRITORY in the session. This can be done with dbms_session.set_nls('nls_territory','FINLAND');
    e.g. for my previous example :
    declare
    date1 varchar2(2000);
    date2 varchar2(2000);
    date3 varchar2(2000);
    begin
    select to_char(sysdate,'Dy DD-Mon-YYYY') today into date1 from dual ;
    select to_char(sysdate+ (1-to_char(sysdate,'D')),'Dy DD-Mon-YYYY') into date2 from dual ;
    select to_char(sysdate+ (7-to_char(sysdate,'D')),'Dy DD-Mon-YYYY') into date3 from dual ;
    htp.p('Territory set to AMERICAN');
    htp.hr;
    htp.p('Today : '||date1);
    htp.br;
    htp.p('First day of the week : '||date2);
    htp.br;
    htp.p('Last day of the week : '||date3);
    htp.br;
    htp.p('Territory set to FINLAND');
    htp.hr ;
    dbms_session.set_nls('nls_territory','FINLAND');
    select to_char(sysdate,'Dy DD-Mon-YYYY') today into date1 from dual ;
    select to_char(sysdate+ (1-to_char(sysdate,'D')),'Dy DD-Mon-YYYY') into date2 from dual ;
    select to_char(sysdate+ (7-to_char(sysdate,'D')),'Dy DD-Mon-YYYY') into date3 from dual ;
    htp.hr;
    htp.p('Today : '||date1);
    htp.br;
    htp.p('First day of the week : '||date2);
    htp.br;
    htp.p('Last day of the week : '||date3);
    end;
    Thanks,
    EJ

  • Oracle*Terminal configuration problem for Web deployment

    Hello everyone!
    I am a novice in using Oracle Forms 6i. I installed a Forms 6i Developer and Server at Windows 2000, the same machine where 8.1.6 Server is running (of cource I installed DB server and Developer in different Oracle_Home's).
    Everything seems to be going well while trying "Client-Server" model. But I can not suceed in deploying forms to the Web. For example when I try "Run a form on the Web" standard option, after I try to run a standard test form (test.fmx), I get another Browser (IE5) window opened, then an applet loads and after that I get a Java-form inside of IE5 window with red bell picture and an error message: "Error while opening Oracle*Terminal file fmrweb."
    Can anyone help me with an advise what to do in such situation?
    Thank you in advance
    Alexander Ilin

    I can't answer the specific problem about the test, but the resource file is set up as follows:
    The html file that invokes the Forms applet has a server argument showing where the terminal key-mapping file is stored on your forms server. In your case it appears to be looking for fmrweb.res and can't find it.
    Take a look at the html and find the path it is using to look for it (I think you'll find this in the ServerArgs parameter). Then make sure the file is there on your Windows 2000 server.
    If it isn't there, do a search for it in the server's Oracle_home directory, and then copy it to the directory where it is expecting it. Along with fmrweb.res, you can also use fmrpcweb.res - just replace fmrweb.res in your html file.
    Hope that helps.

  • Edit locally problem

    Hello,
    I have a problem with the edit locally command. I always get the error message <i>If your application does not start, your local settings may be preventing you from editing locally.</i>when trying to edit a file locally. The settings for local editing are
    ActiveX Version Check: true 
    Active Component: ActiveX
    Java Runtime Version: 1.3
    Does anybody know help?
    Kind regards,
    Domink

    Hi Dominik,
    if you have restricted administrator permissions on you client PC the edit localy ActiveX can not be installed as mentioned in this <a href="https://forums.sdn.sap.com/thread.jspa?threadID=112607">thread</a>.
    Check the information there, or better the updated SAP Note pasted there by Michael with the number: <a href="https://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=755581&_NLANG=E">755581</a>.
    Hope it helps,
    Robert

  • Locale problem (cannot log into shell)

    hi,
    I can't log into my archlinux system.
    when I am trying to log into from the shell the shell resets when I enter my correct credentials (if I enter wrong ones it displays expected errors). I never had this error before. I don't even know what's wrong or how I could fix this. why is the shell behaving like that?
    So I am kinda stuck now. last thing I did before the error was playing around with locales, like enabling de_DE.UTF8 in locale.gen, then locale-gen and export de_DE.UTF8.
    first I had an error like the one below and my system wouldn't even display a login prompt:
    [ 7.013519] agetty[537] trap divide error ip:7f28... sp:7fff... error:0 in libc-2.15.so[7f28...+196000]
    I 'fixed' that error by changing LOCALE in rc.conf to de_DE (without UTF8).
    then I had a gdm trap divide error.
    I 'fixed' that by disabling gdm.
    I can access my system only via my archlinux install usb stick.
    regards
    edit: I've checked auth.log, it says:
    session opened for user dynamo by LOGIN(uid=0)
    file /var/log/lastlog created
    session closed for user dynamo
    and when I open lastlog I can see only gibberish:
    ^@^@^@^@^@^@^@^@^@^@^@^@^@
    is lastlog how it is supposed to be? or could this be part of the error?
    Last edited by dynamo (2012-02-01 18:37:02)

    Thanks for the reply...
    A standard (non admin user) will get the spinning timer and not login.
    If I remove the role which gives them access to see all 'Categories' they get a bit further with the following error message:
    If I put that role back on, I get the same error.
    For admin users, they get the same spinning circle.  However, if a single role is removed from their username, it lets them in.
    This role is the administrator role (ZBPC_VVM000001)...
    Standard users do not have the administrator user role but stil experience the same problem.
    I'm still investigating but if anyone has had anything similar then please let me know.
    We also just tired restarting the CUA connection with BWP
    Ian

  • Terminal monitor problems

    Hello!
    I do terminal monitor on my 4500 switch.
    I can't see the status of the interface ( when it become up or down)
    What is the problem? I need to add a command?
    Thanks...
    Sent from Cisco Technical Support iPhone App

    To enable the traps-
    snmp-server enable traps snmp linkup linkdown
    To view them via the CLI-
    logging monitor 6

  • DOMParser Locale problem

    Hi,
    i got a problem using the setLocale() method of the DOMParserin order to set the language of the Parser in FRENCH :
    I wrote the code below :
    DOMParser dp = new DOMParser();
    Locale loc = new Locale("FRENCH", "FRANCE");
    try {
         dp.setLocale(loc);
    // THIS COMMAND RETURNS fr
         System.out.println(loc.getLanguage());
    } catch (Exception e)
         System.out.println("Exception : " + e.getLocalizedMessage());
    try
    dp.parse(url);
    catch (XMLParseException pe)
    System.out.println(pe.getLocalizedMessage());
    AND THE MESSAGES ARE STILL IN ENGLISH !!!
    WHAT's wrong ??
    Help me please

    I found the response for my problem :
    I/ include in CLASSPATH=$CLASSPTH:$XDK_HOME/lib/xmlmesg.jar
    but the messages are not good : the {1} element is never replaced.
    II/ modify the file "XMLErrorMesg_fr.properties" in order to remove all the ' :
    exemple:
    XSD-2025 become Texte ''{0}'' non valide dans l \u00e9l\u00e9ment : ''{1}''

  • Zen 3 + Terminal server problem

    Hi,
    We have 3 MS terminal server (1xNT, 1xWin2000 and 1xWin2003) machines that
    are attached to our novell network all of which we have the same problem
    with Zen delivered applications. Applications will launch ok unless we use
    Zen application metering in which case we get the error message :-
    "Unable to get attributes for application object [app.apps.bio](id=-309)"
    The odd thing is if you log in on the console it is fine, if you log in via
    a terminal session we get the above message.
    We are running :-
    Netware 5.1sp7 on our servers with DS.NLM version 8.85c
    Zenworks 3.0 sp1
    The terminal servers are running the following clients :-
    NT 4.83 SP2
    Win2000 4.90
    Win2003 4.90 SP2
    Thes applications run fin on a normal workstation, as does the licensing
    component.
    Does anyone have any idea how to solve this ? Other than "don't use
    licensing".
    Thanks.
    Phill.

    "Phill Harvey-Smith" <[email protected]> wrote in
    news:[email protected] 73:
    > Hi,
    >
    > We have 3 MS terminal server (1xNT, 1xWin2000 and 1xWin2003) machines
    > that are attached to our novell network all of which we have the same
    > problem with Zen delivered applications. Applications will launch ok
    > unless we use Zen application metering in which case we get the error
    > message :-
    >
    > "Unable to get attributes for application object
    > [app.apps.bio](id=-309)"
    >
    > The odd thing is if you log in on the console it is fine, if you log in
    > via a terminal session we get the above message.
    >
    > We are running :-
    >
    > Netware 5.1sp7 on our servers with DS.NLM version 8.85c
    > Zenworks 3.0 sp1
    >
    > The terminal servers are running the following clients :-
    >
    > NT 4.83 SP2
    > Win2000 4.90
    > Win2003 4.90 SP2
    >
    > Thes applications run fin on a normal workstation, as does the
    > licensing component.
    >
    > Does anyone have any idea how to solve this ? Other than "don't use
    > licensing".
    To follow up my own post in case someone else has the same problem, turns
    out the license certificates that you create in NWAdmin, have to be in the
    *SAME* container as the license server object. Odd that it worked fine on
    normal workstations, just not on the Terminal server. Anyway it's working
    now :)
    Phill.

  • Lost Locale problem with Struts/Validator Plugin client side validation

    Has anyone else had problems losing the locale in the generated javascript ?
    With the following tiles def and layout (nmLayout.jsp) I can get the locale from the browser OK with
    <html:html locale="true"> and it works ok for imported text (picking up the enCA properties file. But when the javascript executes in the provisionCustomer.jsp the locale reverts to the default property file.
    The Strruts Validator loses the locale of the containing html page. (I do a show source.) I've tried an explicit <fmt:setLocale value="en_CA" scope="session"/> but this has no effect either.
    Thanks
    Bruce
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <!--
    Tiles definition file
    -->
    <tiles-definitions>
    <definition name="nm.MainMenu" path="/nmLayout.jsp">
    <put name="pageTitle" value="Distibutel Network Management" />
    <put name="header" value="header.jsp" />
    <put name="body" value="mainMenuBody.jsp" />
    <put name="footer" value="footer.jsp" />
    </definition>
    <definition name="nm.customer" path="/nmLayout.jsp">
    <put name="pageTitle" value="Distibutel Network Management -- Provision Customer" />
    <put name="header" value="header.jsp" />
    <put name="body" value="provisionCustomer.jsp" />
    <put name="footer" value="footer.jsp" />
    </definition>
    <!-- sample tiles definitions
    <definition name=".mainLayout" path="/common/layouts/classicLayout.jsp">
    <put name="title" value="Sample Page Title" />
    <put name="header" value="/common/header.jsp" />
    <put name="menu" value=".mainMenu" />
    <put name="footer" value="/common/footer.jsp" />
    <put name="body" value=".portal.body" />
    </definition>
    <definition name=".mainMenu" path="/common/layouts/vboxLayout.jsp" >
    <putList name="list" >
    <add value=".menu.links" />
    <add value=".menu.taglib.references" />
    <add value=".menu.printer.friendly" />
    <add value=".menu.old.documents" />
    </putList>
    </definition>
    <definition name="aPage" extends=".mainLayout">
    <put name="title" value="Another Title" />
    <put name="body" value=".aPage.body" />
    </definition>
    end samples -->
    <definition name="${YOUR_DEFINITION_HERE}">
    </definition>
    </tiles-definitions>
    nmLayout.jsp :
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <%@ taglib uri="http://struts-menu.sf.net/tag" prefix="menu" %>
    <%@ taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu-el" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
    <html:html locale="true">
    <head>
    <title><tiles:getAsString name="pageTitle"/></title>
    <link rel="stylesheet" type="text/css" media="screen"
    href="styles/global.css" />
    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
    <style type="text/css">
    body { background: AliceBlue; }
    #appcontent {
                             position:absolute;
                             top: 300px;
                             left: 200px;
                   h1 {color: red;}
                   h2 {color: green;}
    </style>
    </head>
    <body topmargin="0" leftmargin="0">
    <!--
         <fmt:setBundle basename="ApplicationResources"/>
         <fmt:setLocale value="en_CA" scope="session"/>
    -->     
         <script type="text/javascript" src="./scripts/coolmenus3.js"></script>
         <!-- Custom config for this example -->
         <script type="text/javascript" src="./scripts/coolmenu2-config.js"></script>
         <menu:useMenuDisplayer name="CoolMenu"
         bundle="org.apache.struts.action.MESSAGE">
         <menu:displayMenu name="ToDoListMenuProvision"/>
         </menu:useMenuDisplayer>
    <table>
    <tr>
    <td><tiles:insert attribute="header"/></td>
    </tr>
    <tr>
    <td><div id="appcontent"><tiles:insert attribute="body"/></div></td>
    </tr>
    <tr>
    <td><tiles:insert attribute="footer"/></td>
    </tr>
    </table>
    </body>
    </html:html>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
    <html:javascript formName="customerForm" />
    <html:errors/>
    <h1><fmt:message key="ProvisionCustomer.title"/></h1>
    <html:form action="/saveCustomer"
    onsubmit="return validateCustomerForm(this)" >
    <table>
    <tr>
    <td><h2><fmt:message key="ProvisionCustomer.TenantName"/>:</h2></td><td> <html:text property="tenantName"/></td>
    </tr>
    <tr>
    <td><h2><fmt:message key="ProvisionCustomer.TenantID"/>:</h2></td><td> <html:text property="tenantID"/></td>
    </tr>
    <tr>
    <td><h2><fmt:message key="ProvisionCustomer.CustomerID"/>:</h2></td><td> <html:text property="customerID"/></td>
    <td></td><td><input type="submit" value=<fmt:message key="ProvisionCustomer.insert"/>></td>
    </tr>
    </table>
    </html:form>

    you can always get the locale from the request like so....
    <html>
    <%
    request.getLocale().toString();
    %>
    </html>
    you can even stuff it into javascript like so....
    <html>
    <head>
    <script>
    function foo() {
    var locale = '<%=request.getLocale().toString()%>';
    </script>
    </head>
    </html>
    then you can have access to it in javascript code.

Maybe you are looking for