I18n JSTL / How to connect to new JAR holding new properties file?

Hi there
This is concering i18n and how (on earth;) JSTL knows where to find the according properties files that hold all the textual information.
Okay. I have a piece of software that works fine and has the i18n mechanism running very nicely.
I found the properties files in WEB-INF/lib/i18n.jar in a folder 'resources/bundle/'. They all prefix 'i18n' so JSTL makes use of them like this:
     <fmt:bundle basename="resources/bundles/i18n">
          <fmt:message var="thumbnailText" key="thumbnail.label" />
So, we work on a new project right now based on this software. How can I add new project-related properties files?
What I did:
1) I created a new properties files having new textual information on new labels, etc.
2) Put this in a folder of the new project JAR, which is in WEB-INF/lib now.
3) Referenced the basename of fm:bundle according to this folder (including correct file prefix).
-> Doesn't work.
Is it that by convention all i18n information will be searched for in a JAR that must be named 'i18n.jar'?
I'd greatly appreciate any hints
Cheers
André

First, a sidenote to the SUN team: Before beeing able to reply, the forum denied me access unless I comitted to a screen name. Using my 'AndreKuhn' screen name got me 'Already in use'. Yes, of course. By me! So I had to pick AndreKuhn2 which is a little annoying. There seems to be something wrong with your system.
Okay, back to the issue.
Thanks evnafets for your notions! I have 2 JARs having i18n information. One had already been in use (successfully) by the underlying system. It's the one mentioned above ('i18n.jar'). Now there is a second one. Actually used the same way (technically) with different folders and namings. It goes like this:
<fmt:bundle basename="resources/i18n/bdficp">
          <fmt:message var="titleText" key="publishLink.config.title" />
With additional i18n information in 'WEB-INF/lib/<PROJECT-NAME>.jar'. Precisely in a file 'resources\i18n\bdficp_de.properties' having the line:
publishLink.config.title=Just\ another\ title.
Which should be the one referenced in the snippet above. Still the app gives me: ???publishLink.config.title???
Any clue? I'd greatly praise your name across the rooms here!
Cheers
André

Similar Messages

  • How to connect my guitar into my new 13'' macbook pro using headphone's port?

    how to connect my guitar into my new 13'' macbook pro using headphone's port?

    you need a standard guitar cable and a 1/4 inch to 1/8 inch adapter such as this http://www.amazon.com/Recoton-CW1521-4-Inch-8-Inch-Adapter/dp/B00006HOIW

  • In a new Application, the ApplicationResources_en.properties file is not having the constraint messages created

    Hi Everyone:
              We are using JDev 11.1.2 and JHeadstart 11.1.2.  We have been having a multitude of problems when running applications through the migrator (and we have now been told by an Oracle consultant that the migrator is problematic), so we are trying to re-write things from scratch to bring them over from 11.1.1.4 to 11.1.2.
              I have been working on a simple application from scratch and discovered that the messages for constraints on the entities that I am using are not showing up in the ApplicationResources_en.properties.file.  We noticed a similar thing with converting an application using the migrator and that post is found here - java.lang.NullPointerException ADF_FACES-60097 message ***WITH SOLUTION*** -. 
              However, I didn't get a single reply to that thread. 
              I initially thought it was a migration issue, but this application is from scratch.  Whenever I tried to input an invalid value into a page column, the following exception would be received.
    "java.lang.NullPointerException  ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #"
               This Null Pointer turned out to be the missing message from the ApplicationResources_en.properties file.  In the new application I just wrote, I had to manually edit to add the following lines to the ApplicationResources_en.properties file and the application no longer gives me the error if I input an invalid value.
    VALIDATE_FEE_CATEGORY_3=Feecategory with this FeeCategory does not exist
    VALIDATE_ACADEMIC_TERM36=Academicterm with this EffectiveTermStart does not exist
    VALIDATE_ACADEMIC_TERM36_CASDEL=Cannot delete Academicterm while dependent Specialexchange exists
    VALIDATE_ACADEMIC_TERM37=Academicterm with this EffectiveTermEnd does not exist
    VALIDATE_ACADEMIC_TERM37_CASDEL=Cannot delete Academicterm while dependent Specialexchange exists
    VALIDATE_CURRENCY23=Currency with this Currency does not exist
    VALIDATE_CURRENCY23_CASDEL=Cannot delete Currency while dependent Specialexchange exists
    VALIDATE_FEE_CATEGORY_3=Feecategory with this FeeCategory does not exist
    VALIDATE_FEE_CATEGORY_3_CASDEL=Cannot delete Feecategory while dependent Specialexchange exists
    These constraints are found in the Entities .xml files  as shown below.  We are using a re-usable business components .jar file to import them in.
      <Key
        Name="UniqueFeeCategory"
        PrimaryKey="true">
        <DesignTime>
          <Attr Name="_DBObjectName" Value="UNIQUE_FEE_CATEGORY"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.FeeCategory"/>
          <Item Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.Currency"/>
          <Item
            Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.EffectiveTermEnd"/>
        </AttrArray>
      </Key>
      <Key
        Name="ValidateAcademicTerm36">
        <DesignTime>
          <Attr Name="_referencedKey" Value="UNIQUE_ACADTERM_CODE"/>
          <Attr Name="_isForeign" Value="true"/>
          <Attr Name="_DBObjectName" Value="VALIDATE_ACADEMIC_TERM36"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.EffectiveTermStart"/>
        </AttrArray>
      </Key>
      <Key
        Name="ValidateAcademicTerm37">
        <DesignTime>
          <Attr Name="_referencedKey" Value="UNIQUE_ACADTERM_CODE"/>
          <Attr Name="_isForeign" Value="true"/>
          <Attr Name="_DBObjectName" Value="VALIDATE_ACADEMIC_TERM37"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.EffectiveTermEnd"/>
        </AttrArray>
      </Key>
      <Key
        Name="ValidateCurrency23">
        <DesignTime>
          <Attr Name="_referencedKey" Value="UNIQUE_CURRENCY_CODE"/>
          <Attr Name="_isForeign" Value="true"/>
          <Attr Name="_DBObjectName" Value="VALIDATE_CURRENCY23"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.Currency"/>
        </AttrArray>
      </Key>
      <Key
        Name="ValidateFeeCategory3">
        <DesignTime>
          <Attr Name="_referencedKey" Value="UNIQUE_FEECAT_CODE"/>
          <Attr Name="_isForeign" Value="true"/>
          <Attr Name="_DBObjectName" Value="VALIDATE_FEE_CATEGORY_3"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.FeeCategory"/>
        </AttrArray>
        Is this a known bug (I have searched and havent found it) and is there anything that I can do about it without having to manually add the messages?
    Mary
    UofW

    Hi Everyone:
               I have done some further testing.  We are using a re-usable Business Components .jar file to access our entities.  We import the .jar file into the project and create the ViewObjects and ViewLinks from that .jar file.
                It APPEARS that a test case using the HRSchema and using the Entities & Associates generates the constraint error messages, but when I use the .jar file of re-usable business components imported into the project, those constraint error messages are not created in the ApplicationResources_en.properties file.  I have created two testcases as well as the re-usable .jar file that I can send to you to show what I mean. 
                This behaviour seems to have shown up in 11.1.2 as there was no problem before this.
                 Please let me know where you'd like me to upload the testcases.
                 Thank you.
    Mary
    UofW

  • How to connect from Signed jar to normal jar

    Hi Team,
    I have one signed jar. This signed jar manifest file contains all the algorithams. I want to connect from
    a class (which is available in a signed jar) to another class (which is available in another jar which is not signed.)
    could you please explain how to add class-path in signed jar maifest file.
    Thanks
    T. Shankar Reddy

    Hi,
    Please use the CD to run setup on the second, third, ..... computer. In short, you have to run setup for each computer.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to connect IDM 5 to a new waveset database

    We have IDM 5 installed and use MS SQL server 2000 as repository. The old database is corrupted. We are going to move the old database to a new server. Does anyone have any idea how to make IDM connect to the new database?
    Thanks!

    You can also use lh setrepo to configure new repository configuration XML file.
    There is an option -o by which you can define the output XML file but still make sure you take the backup of the existing serverrepository.xml file.

  • How to connect 3070a printer to my new Pirelli DRG A233G router using my iPad

    I only have my iPad with me so can I set this up without a pc.

    Oh, oops, sorry.
    I searched for a manual for this router and it was in Italian, of course.  The only way this will work is if the router has WPS (Wifi Protected Setup).  I don't believe it does.
    The setup with a computer is a one-time process, so perhaps you could get a friend with a laptop to install it for you.
    Download and install the latest software for your printer from the "Support & Drivers" link at the top of this page.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How to connect to desktop mac using iPhone. File sharing, ScreenSharing???

    Can you please explain how can I connect to my desktop using my iPhone like ScreenSharing will do or file sharing.
    Please describe step be step how to?
    Thank you,
    A new iPhone user who want to get the most out of it

    If by it you mean Mocha VNC, that is how it works. You can connect when you are not on your network but you will have to enable forwarding on you router if you have one.
    What is it tha you want to do remotly?
    This world of remote management is that of the IT tech. Mocha is for techs and people that get the technology they are using or are interested in getting it. It is not plug and play stuff. You have to be willing to learn a bit and then with that comes a lot of power.
    If you just want to turn it on and have it work anywhere you won't find that. The reason ports are blocked form the internet is to protect your computers from someone else doing exactly what you are trying.
    So if you want you can enable port forwarding for port 5900 on your router. The IP address VNC Mocha will need is now the IP address of your router. Create a second connection on the list in Mocha for this connection as it is different than the one that will work on your network. Your router will forward anything on that port to you computer. I have successfully done this. It isn't very fast i will say. The screen refresh is very slow. You need patience to get anything done. I needed a file from a PC i had at home. It took about 15 minutes to get that file moved on to my iDisk through running Firefox on the PC from several towns away using Mocha. I might have been on a slow internet connection too.

  • How can i locate the properties files within a ejb container?

    when i develop servlet+javabean structure application,in order to imploement decoupling,i
    would like to write the config information in the properties files(key-value pair),in
    servlet,i use "getResourceAsStream(String relativePath)" method to retrieve the
    configuration information from the properties files(i even write the SQL clause
    in the files),it alwsys works well.
    now,i want to implement such function within the ejb container,that is to read
    a properties file from session bean,but i don't know how can i locate the file
    within the ejb container by using relative path,i wonder if there is the same
    method within ejb container as "getResourceAsStream(.......)" method within servlet
    container?
    thanks for any helps!
    the code snippet is appreciated!

    In general, you should look at using environment entries (variables) in the
    deployment descriptors (both the war and EJB jar rather than properties
    files for configuring J2EE applications. The reasons for this are many:
    1. This is the official way to do it according to the spec. Properties
    files are the J2SE way of doing things
    2. As you note, that it's not obvious how you would (legally) read a
    properties file inside an EJB.
    3. It's consistent between the web and EJB part of your code
    4. the weblogic console and tools have good capabilities to edit these
    fields.
    Kent
    "zhebincong" <[email protected]> wrote in message
    news:[email protected]..
    >
    when i develop servlet+javabean structure application,in order toimploement decoupling,i
    would like to write the config information in the propertiesfiles(key-value pair),in
    servlet,i use "getResourceAsStream(String relativePath)" method toretrieve the
    configuration information from the properties files(i even write the SQLclause
    in the files),it alwsys works well.
    now,i want to implement such function within the ejb container,that is toread
    a properties file from session bean,but i don't know how can i locate thefile
    within the ejb container by using relative path,i wonder if there is thesame
    method within ejb container as "getResourceAsStream(.......)" methodwithin servlet
    container?
    thanks for any helps!
    the code snippet is appreciated!

  • Is this how to use a properties file?

    Hi:
    The following is how I intend to create and read a properties file, please verify for me that the idea is correct.
    1. create myProp.properties
    2. in myProp, the content is like such:
    a=myA
    b=myB
    c=myC
    3. In my application,
      FileInputStream in = new FileInputStream(getClass().getResourceAsStream("/myProp.properties"));
      Properties p = new Properties();
      p.load(in);
      String a = p.getProperty("a");
      String b = p.getProperty("b");
      String c = p.getProperty("c");Thanx!

    It depends on what youare doing but if you have a set of properties that you are going to always use from one running of the application to the next, they should generally be defined as static finals.
    For example, lets say you want a configuration file for an application that holds the user's preferences. You might want something like this:
    public class Preferences {
       private static final String ALWAYS_ON_TOP = "always on top";
       private Properities preferences = new Properties();
       static {
          //load the file
       public boolean setAlwaysOnTop(boolean alwaysOnTop) {
          preferences.put(ALWAYS_ON_TOP, String.valueOf(alwaysOnTop));
       public boolean getAlwaysOnTop() {
          return Boolean.valueOf(preferences.get(ALWAYS_ON_TOP));
       public void save() {
          /save file
    }

  • How can i remove a key and its value from properties file

    hi all,
    i want remove a particular key and associated value from the
    properties file. is their any standard way of doing?
    thanks inadvance
    daya

    hi,
    thanks
    i am able to remove the key,
    one more question how can avoid storing date and time
    in properties file.
    thanks
    daya

  • How to connect old aiport express to my new Airport Extreme? My Ipad says "base station e5713b cannot be configured" and my AirPort tool on my PC will not permit me to add my new Airport Extreme network (no network names to choose from)

    How to connect old aiport express to my new Airport Extreme?
    I have a PC running with Win7 and just replaced my Jensen With a brand New Airport Extreme.
    I have set up the Airport Extreme to the internet, Iphones and Ipads and it work as it should.
    I have downloaded latest Version of Airport tool on my PC. In addition i have downloaded the airport tool for Ipad.
    I have reset one of my airport Express and it now shows up both on the Ipad and on the PC airport tool.
    My Ipad says "base station e5713b cannot be configured."
    I have wired the airport Express to my Ethernet to be able to "see it" on my Airport tool.
    My AirPort tool on the PC will not permit me to add the airport Express to my new Airport Extreme network (no network names on the drop-down list to choose from). I wished for an easy set-up, but nothing seems to be plug and play as the Commercial says.. can you please help me?
    Sigve

    Hi
    Thanks for Swift reply.
    Yep - I in fact have two A1088 and one A1264
    I actually bought the new router because the Jensen
    router always lost connection to the Airport Express after some hours or days. I
    always needed to restart my Jensen to play music and that was driving my wife
    mad. The hope was that the Extreme should fix this. Both A1088 have been set up
    to only stream music to two of my stereo amplifiers from my PC’s Itunes library.
    Are the A1088 now useless?
    The A1264 has been set up to feed internet into a Denon Reciever that needed Ethernet cable.
    Please advise
    Regards
    Sigve

  • How to connect my iPad and iPhone to my new apple tv ?

    how to connect my iPad and iPhone to my new apple tv ?

    Also, make sure that all devices are on the same Wi-Fi network (e.g. not on a "guest" connection), and verify the ATV settings to see that AirPlay (and HomeSharing while you're at it) are turned on.

  • HT1699 i dont know how to connect my new ipod touch to itunes to set it up

    i dont know how to connect my new ipod touch to itunes to set it up

    Look at the Users Guide:
    iPod touch User Guide (For iOS 5.0 Software)

  • How to connect old LED Cinema Display to new iMac

    How to connect old LED Cinema Display (Mini DisplayPort) 
    to new iMac (thunderbolt port)?
    Ideas?

    Just plug it into the Thunderbolt port. That port directly supports mini-DisplayPort screens.
    http://www.apple.com/thunderbolt/
    Regards.

  • How to connect a 2008 Apple HD Cinemadisplay to a new MacBook Pro 17"?

    How to connect a 2008 Apple 23" HD Cinema display with a new MacBook Pro 17"?

    Use a Mini DisplayPort adapter for that type of monitor(DVI).
    (62201)

Maybe you are looking for