JSTL fmt:setLocale can't support multi setLocale in a jsp?

hi:
a jsp has follow code:
<fmt:setLocale value="iso-8859-1"/>
<fmt:setBundle basename="Directory"/>
<fmt:message key="name"/>
<fmt:setLocale value="gbk"/>
<fmt:setBundle basename="Directory"/>
<%--change <fmt:setBundle basename="Directory_zh"/> no effect --%>
<%--here in theory,the java.util.ResourceBundle must recall with new Locale --%>
<fmt:message key="name"/>
TOmcat 5.0.16/jdk1.4.2
Always display iso-8859-1 (Directory.properties) directory.
how to display multi language in a jsp?
thanks

Directory_zh.properties exists? In the same physical location as Directory.properties? Directory_zh.properties contains the key 'name'?

Similar Messages

  • Transaction iView issue: Table Can't Support multi-cell copy pase

    Hey guys:
                  I have a big problem. The transaction iview's content is a ABAP application, and it cannot support mulit-cell copy-pase when user try to pase their data from Excel. It only allow single cell copy-pase each time, and that means user needs to  enter data cell by cell. However, the ABAP application works just fine on SAP GUI.
    Anyone can help me figure this out?
    I hope this is configuration problem but WebGUI doesn't support this operation.
    Looking forward your help! Please leave your suggestion. Thanks!

    Sorry it has taken so long for people to respond but this is a lot of data and it took time but basically it's a software issue what's happening is your service provider is making every attempt to contact your phone and your phone is basically not giving up any of the data like your udid or unique identifier. Their is no exact fix for this because I have only ever seen this issue 3 times and what it is best to do is connect to your computer and restore and set it up as a new phone then restore from backed up data. This is the only advice I can offer as this issue is so rare no one has one exact answer for it

  • JSTL fmt-localization

    Hello,
    I'm using Tomcat 5.5 as servlet provider and Apache 2 as proxy.
    My problem is that localization doesn't work.
    1. Choose locale -> Locale ok
    2. Choose another locale -> Locale ok
    3. Choose locale 1 -> locale still 2
    Order does not matter, second locale is used always, even if i change browser.
    jsp-code:
    <fmt:setLocale value="${requestScope.user_locale}"/>
    <fmt:bundle basename="messages">
    <fmt:message key="start.title"/>web.xml:
    <taglib>
                <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
                <taglib-location>/WEB-INF/fmt.tld</taglib-location>
         </taglib>     I print the value of requestScope.user_locale to page and it's ok. fi_FI or sv_SE
    I need help, please? :)

    Thank you for asking the right questions... i think :)
    le
    I'm changing with:
    <fmt:setLocale value="${requestScope.user_locale}"/>
    Cache is disabled:
    <%
    response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
    response.setHeader("Pragma","no-cache"); //HTTP 1.0
    response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
    %>
    requestScope.user_locale value is: fi_FI or sv_SE , it's Locale object (i'v printed it before fmt:setLocale
    ${javax.servlet.jsp.jstl.fmt.locale} does not print anything :(
    I do not know the version of JSTL, sorry :(
    web.xml is Servlet 2.3
    Thanks!

  • JSTL issue using fmt:setLocale ... tag

    Hi, we're working on internationalizing a set of jsp pages, and we are attempting to use the JSTL tag set for this. We are able to have the values read from the default properties file, but the values are not being picked up from the locale specific file. The code below looks as such:
    <fmt:setBundle basename="SystemAdmin" var="systemAdmin" scope="session" />
    <fmt:setLocale value="EN" scope="session" />
    Does anyone have any experience with this and why the SystemAdmin_EN.properties file wouldn't be picked?
    Thanks!
    Rango Keshavan
    [email protected]

    It might help to reverse the order of these two commands.
    ie set the locale BEFORE you look up the resource bundle

  • Can esb DVM(Domain-value mapping ) support multi-language  ?

    I create a dvm , and add some rows in Chinese , but when I restart the soa service , all the DVM that I created disappeared.
    Can esb DVM(Domain-value mapping ) support multi-language ?
    Edited by: user10732687 on 2009-8-23 下午7:39

    DVM is designed to use in English only and not intended to support Multi language. It is the job of consumer application to convert from English to native language(Chinese in your case).
    Thanks,
    Vamsee.

  • Where we can set the Multi lingual support in BW system and Info Object?

    Where we can set the Multi lingual support in BW system and Info Object?

    Hi,
    You can check that in RSD1 -> Info-object -> Master Data text tab -> language dependent or not.
    Bye
    Dinesh

  • Does HP M1005 MFP printer supports multi-page scanning? Can it be run on windows 8 64 bit?

    I have a HP M1005 MFP printer which i usually connect on windows 8 64 bit. I require multi-page scanning for making pdf documents. Can we perform multi-page scanning in HP M1005 MFP? Help appriciated. Thank You. 

    @adhiroop_hp
    Have you tried using the HP Scan and Capture app that you can download from the Windows 8 store? This will give you the option of muti page scan and saving as pdf.
    HP Scan and Capture App download from windows store
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

  • Problem: Localisation with JSTL FMT and Struts

    Hello!
    I am working on my first project with JSP / Servlets including JSTL and Struts Tag Libraries.(plus tiles from JSTL)
    I am trying to use localised messages, to deploy a webshop in multiplle languages.
    I allready managed to accomplish that the messages are read out of a file ApplicationResources.en.properties and another one ApplicationResources.de.properties which will be chosen by the preferences of the browser (JSTL FMT:message tag).
    The strange this is, this only works the first time the servlets are compiled. After I opened the servlet once in my browser, I am allways seeing the message in that language that was used first, even if I set the the locale trough a link in the URL. I am using this code:
    http://localhost:8080/Inkrement18/buchladenseite.jsp?lang=en
    <c:if test='${param.lang == "de"}'>
    DE <fmt:setLocale value="de" scope="session" />
    <fmt:setBundle basename="ApplicationResources" scope="session" />
    </c:if>
    <c:if test='${param.lang == "en"}'>
    EN <fmt:setLocale value="en" scope="session" />
    <fmt:setBundle basename="ApplicationResources" scope="session" />
    </c:if>It seems to me, the servlet is compiled once, and afterwards the locale does not get checked anymore. Is that possible?
    When I delete the compiled servlets from the work directory by hand, my link to change the locale manually works once, till I delete the servlets again (the session does not get killed by deleting the servlets!)
    My webserver is Jakarta Tomcat 5.5.9 and IDE Is eclipse.
    I am not sure if it matters here, but the main page consists of 4 parts like banner, menu, main-page, footer which gets assembled trough "tiles".
    Most submenues like shopping basket / catalogue are action servlets, realised with struts, calling another .jsp page by forward.
    Any ideas are really apreciated - I have no idea where to look for the error!
    If you need any more input from my side, please let me know!
    Best regards
    Jan

    Hey Experts!
    Nobofy has a clue on this? I have really no clue where to start to look for the problem...
    Cheers...Jan

  • Help needed with JSTL fmt:message encoding

    I'm using a greek resource bundle like
    <fmt:setLocale value="el"/>
    <fmt:setBundle basename="i18n.messages"/>
    I used UTF-8 for both the bundle file and JSP response encoding, but the values never prints out in the JSP response properly. If any non-english user can share some insight here, i'd really appreciate it...
    Thanks,
    Manos

    Have you considered using unicode for presentation. It might not be the prettiest way to do things, however, when I needed to present non-english characters. I would send them to JSP as a collection of unicode characters and than translate each one into character based on the desired locale.
    Hope it helps.

  • How can I get Multi-color text it a swing componet?

    How can I get Multi-color text it a swing componet?
    I've tryed JTextPane and JEditorPane.
    If they support having text in more then one color then I don't see how.
    I want to make a color-coded Java editor in Java, but I can't color-code if I can only have one color.
    JComponent.setForeground(Color fg)
    is not what I need.
    maybe Java doesn't support it yet.
    but I hope it does.
    Please help, thanks.

    Hi,
    I've made you a little example with a coloured JEditorPane and JTextPane:
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ColorDemo extends JFrame {
         public ColorDemo() {
              super("ColorDemo");
              // coloured JEditorPane
              JEditorPane editorPane = new JEditorPane("text/html",
                   "<FONT color=red> This </FONT>"+
                   "<FONT color=blue> is </FONT>"+
                   "<FONT color=green> a </FONT>"+
                   "<B> JEditorPane </B>");
              editorPane.setPreferredSize(new Dimension(250, 150));
              // coloured JTextPane
              JTextPane textPane = new JTextPane();
              textPane.setPreferredSize(new Dimension(250, 150));
              Document doc = textPane.getDocument();
              Style def = StyleContext.getDefaultStyleContext().
                   getStyle(StyleContext.DEFAULT_STYLE);
              try {
                   StyleConstants.setForeground(def, Color.blue);
                   doc.insertString (0, "This ", def);
                   StyleConstants.setForeground(def, Color.red);
                   doc.insertString (5, "is ", def);
                   StyleConstants.setForeground(def, Color.green);
                   doc.insertString (8, "a ", def);
                   StyleConstants.setBold(def, true);
                   StyleConstants.setForeground(def, Color.black);
                   doc.insertString (10, "JTextPane", def);
              } catch (Exception e) {}
              JPanel contentPane = new JPanel();
              contentPane.add(textPane);
              contentPane.add(editorPane);
              setContentPane(contentPane);
         public static void main(String[] args) {
              JFrame frame = new ColorDemo();
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              frame.pack();
              frame.setVisible(true);
    }Hope this helps,
    Kurt.

  • Analysis for Office support multi thread?

    Does Analysis for Office support multi thread/core? If so, what verison? I tried searching around this site as well as note 1466118 - Hardware & Software requirements for Analysis, edition for MS Office but was unable to find an answer.
    I am on an Intel dual cpu with hyper threading turned on so it essentially looks like 4 cores. When I execute an Analysis View, I rarely see the EXCEL.EXE process go above 25% CPU utilization. I have plenty of RAM and hard drive space.
    64bit Windows 7
    32bit Office 2010
    AAO 1.3.5.2288
    Thanks

    I found the following info at:
    Excel 2010 Performance: Performance and Limit Improvements
    Large Data Sets and 64-bit Excel
    The 64-bit version of Excel 2010 is not constrained to 2 GB of RAM like 32-bit applications. Therefore, 64-bit Excel 2010 enables users to create much larger workbooks. 64-bit Windows enables a larger addressable memory capacity, and 64-bit Excel is designed to take advantage of that capacity. For example, users are able to fill more of the grid with data than was possible in previous versions of Excel. As more RAM is added to the computer, Excel uses that additional memory, allows larger and larger workbooks, and scales with the amount of RAM available.
    In addition, because 64-bit Excel enables larger data sets, both 32-bit and 64-bit Excel 2010 introduce improvements to common large data set tasks such as entering and filling down data, sorting, filtering, and copying and pasting data. Memory usage is also optimized to be more efficient, in both the 32-bit and 64-bit versions of Excel.
    Multi-Core Processing
    Additional investments were made to take advantage of multi-core processors and increase performance for routine tasks. Starting in Excel 2010, the following features use multi-core processors: saving a file, opening a file, refreshing a PivotTable (for external data sources, except OLAP and SharePoint), sorting a cell table, sorting a PivotTable, and auto-sizing a column.
    For operations that involve reading and loading or writing data, such as opening a file, saving a file or refreshing data, splitting the operation into two processes increases performance speed. The first process gets the data, and the second process loads the data into the appropriate structure in memory or writes the data to a file. In this way, as soon as the first process beings reading a portion of data, the second process can immediately start loading or writing that data, while the first process continues to read the next portion of data. Previously, the first process had to finish reading all the data in a certain section before the second process could load that section of the data into memory or write the data to a file.

  • Mysql database to support multi-language. [help]

    i am using mysql database, how can i set the datatype that support multi-language now i set the datafield to varchar(45), it can't display chinese character also in jsp file.
    how to set the datatype?

    pn_nq wrote:
    i am using mysql database, how can i set the datatype that support multi-language now i set the datafield to varchar(45), it can't display chinese character also in jsp file.
    how to set the datatype?First step is to understand that display and data are not the same thing.
    Second step is to determine where the problem is - right now you have not done that. Do NOT attempt this step until you UNDERSTAND the first step.

  • JSTL fmt:param tag question

    <%@taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    <fmt:message key="result_display">
         <fmt:param value="${resultBean.sourceNumber}"/>
         <fmt:param value="${resultBean.resultValue}"/>
    </fmt:message>
    As far as I can tell, the "value" attribute of the <fmt:param> tag is capable of taking an EL. And yet, the code above does not compile. I get the error message "According to TLD or attribute directive in tag file, attribute value does not accept any expressions". If I use the <fmt_rt:param> tag, everything works fine. Am I reading the spec wrong?

    You're not reading the spec wrong, but I think you are using the wrong version of JSTL. Are you using Tomcat 5? (Or another JSP2.0 container?)
    If so, you should be using JSTL1.1
    It has a uri of "http://java.sun.com/jsp/jstl/fmt"
    Note the extra /jsp in there.
    Tomcat 5 treats ${  } as runtime expressions. To a JSP2.0 container, they ARE runtime expressions. Thus in JSTL 1.1, the fmt:param tag does accept runtime expressions.
    In JSTL1.0 because the ${  } expressions WEREN'T understood by the container, they made the tags so as not to accept runtime expressions, and called their custom evaluator.
    You are using the 1.0 uri, which specifies that it doesn't accept runtime expressions. It is complaining that ${ } is a runtime expression - so you must be using a JSP2.0 container.
    In short: You probably have a JSP2.0 container, and should be using JSTL1.1 uri: <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
    Cheers,
    evnafets

  • Does robo demo support multi language

    Hi all,
    can some one tell me how do i configure the project which
    supports multi language for German, italy and french please mail me
    at [email protected]
    Regards
    shashi

    Hi Rick,
    i am sorry i am using Robo Help HTML. here in project
    settings there is a dropdown and there is no German, French and
    Italian language specified. can you please let me know how to
    configure the Project for this languages?
    Regards
    shashi

  • ClassCastException: javax.servlet.jsp.jstl.fmt.LocalizationContext

    today i had the following exception, which blows my mind away. what can be wrong?
    java.lang.ClassCastException: javax.servlet.jsp.jstl.fmt.LocalizationContext
         at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.getLocalizationContext(Ljavax.servlet.jsp.PageContext;)Ljavax.servlet.jsp.jstl.fmt.LocalizationContext;(BundleSupport.java:127)
         at org.apache.taglibs.standard.tag.common.fmt.MessageSupport.doEndTag()I(MessageSupport.java:152)
         at jsp_servlet._web_45_inf._jsp._templates.__template._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(__template.java:235)environment: weblogic 8.1-sp4, jstl 1.0.6

    well the fact is that the JSPs are 100% correct. i'm migrating some legacy project, which builds, deploys and runs in its old state with no errors at all (and the old state is current PRO, so every bit of code is supposed to be correct). hence i presume it's not the JSPs that are wrong (because i never touched them), that's something else, probably the configuration of things, or conflicts between container libs and webapp libs, or sort of like that.
    so if this error doesn't ring a bell, then i'll try to fiddle around, i thought maybe that's something "famous" :).

Maybe you are looking for

  • Final Cut Pro 7 - Share - Blu-ray - ERROR

    Fresh install of OS and FCS. Ran a quick test to make sure this would work: File - Share - Blu-ray Burned to disc then and there, and it was successful on an eleven second portion of the clip with an in and out point on the timeline. The result was a

  • Html files in jar file

    Hi! i have put some html files in my jar file,but i cant open the html files when i un the jar file.what should i do?

  • Need help in performance tunning

    Hi , i have one update statement , where it is keep on running for hours and the volume of the data is 2.2 million version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi PL/SQL Release 10.2.0.4.0 - Production CORE 10.2.0.4.0 Produc

  • Photosmart 7520 - How to view on screen the printer status report

    How do I view on the monitor or printer screen the 'Total pages printed' figure, which otherwise I need to frequently print out via "Maintain your computer>Device reports>Print Status report"?  I'm using HP Photosmart 7520e, wireless connected, Windo

  • DS Open timeout in cRIO startup app

    I have a cRIO application that upon startup opens a collection of Datasocket references to local NSV's. When running from the development environment everything works as designed.  When I build and run as a startup app then I get Error 56 Timeout on