ResourceBundle, Properties file ...syntax...HELP PLEASE

Would someone please tell me how to correctly write a StringArray with key value pair in a properties file?
Example:
button.labels="Mrc","DataExtraction","ScheduleProcessing"
button.Actions=mrc/data/schedule
button.ImageIcons=FTIlittle.gif,FTIlittle.gif,FTIlittle.gif
these are the ways I have tried...
here is the code snippet:
buttonLabels = resources.getStringArray("button.labels");
buttonActions = resources.getStringArray("button.Actions[]");
buttonImageIcons = resources.getStringArray("button.ImageIcons[]");
I keep getting the error saying that my 'array' in the .properties file is not an array.
How do I do this...
Thanks in advance!

Hello and Welcome to Apple Discussions. 
Apple advise to use the Disk Utility if possible rather than fsck in 10.4.
Boot from your Tiger install DVD.
Don't run the installer but rather choose Disk Utility from the menu bar. In Disk Utility select Macintosh HD on the left hand pane and then click "Repair Disk" and "Repair Disk Permissions".
Quit Disk Utility and exit the Installer.
Let us know how you get on.
mrtotes

Similar Messages

  • I can't load raw files from a Leica d-lux 6. Says it's an unsupported file. Help please!

    I cannot load raw files from a Leica d-lux 6.  Aperture says it's an unsupported file.  How do I get it to be a supported file?  Help, please!

    What is your Aperture version? Here is the list of supported raw formats for Aperture 3, see: Apple - Aperture - Technical Specifications - RAW Support
    Your camera is not on the list. Use the software that came with your camera to convert your raw files to dng or tiff images; then you can import the images into Aperture and work with them, while waiting for Apple to release raw support for your camera. Or shoot raw+jpeg pairs and use the jpeg while you are waiting.
    Is Mac OS X (10.5.1) really your current operating system? Then you may need to upgrade, when Apple finally releases raw support for your camera. The newest raw support required Aperture 3.4. to be installed.
    Regards
    Léonie

  • Which font.properties file to use- please help

    I am working on an application for accepting hindi text as input.Please help me in following matter-
    1. I have several font.properties file on my application server machine. Also some jre have font.propeties file. Which file should I change so that my forms 6i deployed on this application server can accept hindi font insatlled on application server machine.
    2. If I need to change my Jinititor , where should i make changes.
    Please help

    you have asked so many questions about hindi text, etc... and nobody could help you. Please contact the support and open an ITAR at metalink.oracle.com. They should help you.

  • Use resourceBundle properties file from KM

    Hi,
    I have a properties file called com.mycomp.apps.phonebook.properties in the KM Content of the portal in KM Content => root => mycomp => apps => phonebook => customizing
    Now I'm developing a new LinkCommand service for the UserDetails.
    http://help.sap.com/saphelp_nw04/helpdata/en/65/29b24053c13f5fe10000000a155106/frameset.htm
    The already existing LinkCommand "Send E-mail..." is read from the original resourceBundle com.sap.ip.collaboration.gwui.api.wdf.mail.SendTo
    For my new LinkCommand I would like to use the existing properties file. How do I have to define this file in the uicommand xml or properties xml sheet?
    Can anybody help me?
    With the local project resourceBundle it's working, but I would like to use the file in the KM. Andy ideas?
    Regards,
    Stefan

    Hi Praven,
    Copying all existing SendTo properties file to my project would be an option but I wouldn't win anything.
    I'm quite happy with the existing SAP collaboraton properties files using e.g. for "Send e-mail".
    I won't change this existing ones. I created a new LinkCommand. And for this new LinkCommand I'm looking for a solution how I can handle the translation for it.
    I would prefer e using my existing file which is located in the KM. The reason why it's located in the KM is, if I need to change a translation or add a new translation properties file I only need to change it in the KM. If it's a part of the project I need by every change to deploy the project new.

  • Read resourceBundle properties file from KM

    Hi,
    I have a properties file called com.mycomp.apps.phonebook.properties in the KM Content of the portal in KM Content => root => mycomp => apps => phonebook => customizing
    Now I'm developing a new LinkCommand service for the UserDetails.
    http://help.sap.com/saphelp_nw04/helpdata/en/65/29b24053c13f5fe10000000a155106/frameset.htm
    The already existing LinkCommand "Send E-mail..." is read from the original resourceBundle com.sap.ip.collaboration.gwui.api.wdf.mail.SendTo
    For my new LinkCommand I would like to use the existing properties file. How do I have to define this file in the uicommand xml or properties xml sheet?
    Can anybody help me?
    With the local project resourceBundle it's working, but I would like to use the file in the KM. Andy ideas?
    Regards,
    Stefan

    Hi Praven,
    Copying all existing SendTo properties file to my project would be an option but I wouldn't win anything.
    I'm quite happy with the existing SAP collaboraton properties files using e.g. for "Send e-mail".
    I won't change this existing ones. I created a new LinkCommand. And for this new LinkCommand I'm looking for a solution how I can handle the translation for it.
    I would prefer e using my existing file which is located in the KM. The reason why it's located in the KM is, if I need to change a translation or add a new translation properties file I only need to change it in the KM. If it's a part of the project I need by every change to deploy the project new.

  • Nitpicking about .properties file syntax

    After years of using these files, could someone please tell me what the convention for syntax is? :)
    This:
    somekey=valueor this:
    somekey = valueAnd YES, this must be the least important thread of all time, but since we're with multiple guys here mixing both variants I would like to standardize on one.

    Both; also the same thing with : instead of =, or without either. See the Javadoc for java.util.Properties.load():
    'Any white space after the key is skipped; if the first non-white space character after the key is '=' or ':', then it is ignored and any white space characters after it are also skipped. '

  • Connection to iFS from a remote station & .properties file syntax

    Hello,
    I want to make a java application (running on a simple NT workstation) that is able to connect onto the iFS-1.1.9 server (running on a different unix server).
    So I copied all the necessary jar and zip files from the iFS server, installed JDK1.1.8 (would it work with JDK 1.3 since I have iFS-1.1.9 ?), put all necessary jar/zip files in the classpath and I was able to compile the sample program given in the iFS dev guide.
    I know that I also need a "service.properties" file that is in oracle.ifs.server.properties directory in my CLASSPATH, that point is ok.
    The fact is that I don't have a clue about the exact syntax of that file. I only have as an example the standard servers.properties file on my iFS server itself, but the "DatabaseUrl" attribute is probably not the same because in my case the service is running on a remote machine...
    As a result, when I launch my java app on my workstation it says :
    oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
    oracle.ifs.common.IfsException: IFS-10633: Unable to create library connection
    oracle.ifs.common.IfsException: IFS-10600: Unable to construct library connection
    So is there anything I am missing ? Where can I find the definition and syntax of all attributes in the .properties file ?
    Thanks in advance for any help.
    Regards,
    Arnaud.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Thanks to your advises, here is the simple properties file I created (only 3 lines) :
    User=IFSSYS
    DatabaseUrl=jdbc:oracle:oci8:haddock/tciDir
    CredentialManagerIfsSchema=IFSSYS$CM
    <HR></BLOCKQUOTE>
    OK, so there are two problems. First of all, I should have explained better. You absolutely need ALL of the other properties in the new service properties file you have created. What I should have said in the last post was that the above three properties are the only ones you need to CHANGE. What you should do is copy IfsDefault.properties from the iFS installation ($OH/ifs1.1/settings/oracle/ifs/server/properties) to your NT machine, and then EDIT those three properties as you have specified above. And make sure to put it in the CLASSPATH correctly, under the same directory hierarchy.
    The second problem is your JDBC database URL. The format for the OCI8 connect string using a TNS alias is as follows:
    jdbc:oracle:oci8:@<tns_alias>
    where <tns_alias> is a name you create with the Oracle Net8 Assistant (it should be on your NT machine under your Start menu: Oracle-<your_oracle_home>/Network Administration).
    You should read the Net8 Administration Guide for more information about TNS aliases and how to use "thick" (OCI8) JDBC.

  • PL/SQL Function Syntax help please...

    Can someone help me with the syntax here please? I am sure i am doing something wrong in my LOOP.
    create or replace FUNCTION fcn_chk_dec(p_date number)
    return NUMBER
    as
    --DECLARE
    v_date NUMBER;
    v_active NUMBER;
    v_prev NUMBER;
    v_delta NUMBER;
    v_perc_delta NUMBER:
    CURSOR c_prev_active IS
         select date,people,
    lag(people,1) over (order by date)
         from stats
    where date between to_date(p_date, 'YYYYMMDD')-2 and to_date(p_date, 'YYYYMMDD')-1
         order by date desc
    BEGIN
         OPEN c_prev;
    loop
         FETCH c_prev INTO v_date,v_active,v_prev;
         exit when c_prev%NOTFOUND;
         v_delta:=v_active-v_prev;
    v_perc_delta:=trunc((v_delta/v_active*100),2)
    end loop;
    close c_prev;
    return v_perc_delta;
    END fcn_chk_dec;

    what i am trying to do is create a funtion that will return one value for the first row that comes back.
    here is my initial query. the reason i did not go with this query is because there are too many selects and i was told that's not good and slows down the system. Plus, i need to have a function call in another program that will access this function to compare it's output to a value in a table.
    here was my initial start:
    select date,people,delta,trunc((delta/people*100),2) as perc_delta
    from (select date, people,people-prev_dly_people as delta
    from
    (select date,people,
    lag(people,1) over (order by date) as prev_dly_people
    from stats
    where date between to_char(sysdate-2,'YYYYMMDD') and to_char(sysdate-1,'YYYYMMDD')
    order by date desc))
    basically, i have a table that has a total number of people. I want to get the percentage growth and decline from the most recent date and the date before it. This will give me a day to day percentage of people population change as of the most recent date.
    I need this to be a function becaus i want to be able to pass any date i want into it and get the given delta percentage at the time for the people's population.
    hope this makes sense.

  • Where to place ResourceBundle properties files

    I have written a servlet that will serve content in different languages
    depending on the user's browser settings.
    The problem is my servlet cannot find the resource bundle properties fiel
    even though I put it in the server classes directories.
    Namely:
    /weblogic/myserver/servletsclasses
    /weblogic/classes
    /weblogic/myserver/serverclasses
    Can anybody tell me where to put my resource bundle properties files??
    regards
    EM

    "Ee-Ming" == Ee-Ming Toh <[email protected]> writes:
    Ee-Ming> I have written a servlet that will serve content in different languages
    Ee-Ming> depending on the user's browser settings.
    Ee-Ming> The problem is my servlet cannot find the resource bundle properties fiel
    Ee-Ming> even though I put it in the server classes directories.
    Ee-Ming> Namely:
    Ee-Ming> /weblogic/myserver/servletsclasses
    Ee-Ming> /weblogic/classes
    Ee-Ming> /weblogic/myserver/serverclasses
    Ee-Ming> Can anybody tell me where to put my resource bundle properties files??
    First of all, it would be useful if we knew what version of WebLogic you're
    using. There's considerable differences between versions.
    In general, if you have a standard WAR structure, you're better off putting
    properties files in the "WEB-INF/classes" directory of your WAR structure. If
    you do that, you have a chance of being able to redeploy the changed properties
    files without having to restart the server.
    ===================================================================
    David M. Karr ; Java/J2EE/XML/Unix/C++
    [email protected] ; SCJP; SCWCD

  • Property file usage help please !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

    hi there
    i need some help on using property file, please. i have a package that contains many directories and classes. in one the directory, there is a property file: properties. and some of the classes need to access information in the file. how can i use ResourceBundle or Property objects to read the file? this is my guessing :
    //code....................................
    ResourceBundle.getBundle("D:\\tomc\\wowExchangeProject\\soaptest\\src\\com\\wowgao\\uddi\\db\\properties.properties").getString("implementation");
    and:
    //code....................................
    File f=new File( configFile );
    if( f.exists()) {
    Properties props=new Properties();
    props.load( new FileInputStream(f));
    DBClassName = props.getProperty("implementation");
    i must use absolute path for the file. what if i need to distribute the package on other machine that does not have D drive. how can change it so that i can deploy it on any machine? thanks

    hi there
    i need some help on using property file, please. i
    have a package that contains many directories and
    classes. in one the directory, there is a property
    file: properties. and some of the classes need to
    access information in the file. how can i use
    ResourceBundle or Property objects to read the file?
    this is my guessing :
    //code....................................
    ResourceBundle.getBundle("D:\\tomc\\wowExchangeProject\
    soaptest\\src\\com\\wowgao\\uddi\\db\\properties.proper
    ies").getString("implementation");
    and:
    //code....................................
    File f=new File( configFile );
    if( f.exists()) {
    Properties props=new Properties();
    props.load( new FileInputStream(f));
    DBClassName =
    ame = props.getProperty("implementation");
    i must use absolute path for the file. what if i need
    to distribute the package on other machine that does
    not have D drive. how can change it so that i can
    deploy it on any machine? thanksHi!
    Let�s say you have the following structure:
    - com/props/props.properties
    You can use any class inside the classloader that loaded this package to do the following:
    InputStrean in = <classname>.class.getResourceAsStream("/com/props/props.properties");
    Properties props = new Properties();
    props.load(in);
    Hope this can help you. Any doubts just ask!
    MSB

  • How to fix the download arrow. Won't show me recent downloads even though I would have downloaded a file. Help please.

    I recently downloaded a zip file and when I unzipped the file my arrow stopped showing me recent downloads. It will show the effect of me clicking but won't show any files that I may have recently downloaded. Please help as this is the fastest way for me to do my schooling and work when I am given documents.

    If the list attached to the arrow is cleared, does the link "Show All Downloads" appear and let you view the earlier downloads? The keyboard shortcut for that is Ctrl+j if you are a keyboard person.

  • How to Export a HIGH QUALITY .avi file.  help PLEASE

    Hi, I am trying to export my movie to an avi file, so I can upload it on youtube. I've done some searches online, but have not found any answers that work. I keep getting very low image quality, no matter what settings I choose. I've gone into quicktime preferences and saved the file in "high quality" and that doesn't work. How can I export a movie file with the same image quality as the original project? I'm using Explicit to split the file into two parts, but it can only handle .avi files. Please help!
    zaike

    Ah, I just converted it with the wrong compressor. I used DV/DVCPRO-NTSC prog. scan and it looks beautiful.

  • IMovie wont accept .mov files. Help please.

    I have imported a bunch of movie files from my digital camera. They are now in IPhoto and everything is fine. I would like to import them into IMovie to do some editing but for some reason it will not accept the file. Does anyone know what I am doing wrong? All of the files i am trying to move into IMovie are .mov files. Shouldnt they work? Please help.

    Does anyone know what I am doing wrong? All of the files i am trying to move into IMovie are .mov files. Shouldnt they work?
    Not necessarily. MOV is a generic file container -- not a compression format. It can hold any audio and video compression format combination compatible with the QT structure and currently installed QT components. (Even WMV content can be placed in an MOV container.) Unfortunately, iMovie '08 will only import files containing compression formats that it can edit "natively." Kodak digital cameras, for instance, tend to favor MPEG4/µ-Law compression. And, while the MPEG-4 video is compatible with iMovie '08, the µ-Law 2:1 audio compression is not. To import an MOV file, both audio and video compression must be compatible. In the case of the MPEG4/µ-Law file, only the audio format has to be converted to make the file compatible. One way to do this is to use GarageBand to access the "Movie to MPEG-4" export option and "Pass through" the video which converting the audio to AAC -- mono 64 kbps at 44.1 kHz will work here -- and place both in an MP4 container. Another method is to simply convert both audio and video to compatible formats using a converter of your choice.

  • Why can i not get my files? help please!

    I used to have a macbook, running snow leopard, always up to date etc, and it was full of pictures, movies, music, all of which I backed up onto a shiny new time capsule.
    cut to roughly 6 months later, the hard drive on my macbook dies, but i think it's all ok, i have it all in my time machine. no problem.
    I was wrong.
    I decided it was time to buy me a new laptop, so now have a macbook pro. very nice. however, it seems that I am unable to migrate any files. almost like they are not even there
    what can I do? i live in the UAE and haven't found anyone able to help me. i am in distress. music can be replaced, my iphoto album can not... i'm devastated.

    have you seen these user tips:
    http://web.me.com/pondini/Time_Machine/14.html
    http://web.me.com/pondini/Time_Machine/15.html
    JGG

  • ForEach items syntax help please

    This shouldn't be a problem but it is. I have a JSP. I am sending it an attribute that is a collection by calling setAttribute() on the request and then dispatching to the JSP from my front controller servlet. I want to iterate through the collection. The name of the attribute is "changeRequets" and I have tried accessing it without any scope qualifiers and with scope qualifiers and no matter what, this forEach produces no data. I have verified that the JSP is receiving data, because I've accessed the request attribute separately without JSTL. What is wrong with the following please?
       <c:forEach var="chgRequest" items="${requestScope.request.changeRequests}">
                    <tr>
                        <td>
                            <input type="radio" name="crButton" value="<c:out value="${chgRequest.crChangeRequestID}"/>" <c:if test="${status.first}">checked</c:if> />
                        </td>
                    </tr>
    </c:forEach>This produces no data, no rows. I don't get it. I can't find anything in my JSTL book that helps. Thanks.
    Ken

    Ignore the previous reply
    change it to the following
    <c:forEach var="chgRequest" items="${changeRequests}">
                    <tr>
                        <td>
                            <input type="radio" name="crButton" value="<c:out value="${chgRequest.crChangeRequestID}"/>" <c:if test="${status.first}">checked</c:if> />
                        </td>
                    </tr>
    </c:forEach>

Maybe you are looking for