Message catalogs vs. straight resource bundles

Hello,
I'm just starting to investigate someof WebLogic's internationalization features,
and I'm trying to decide what the benefits would be for using the i18n features
instead of straight Java resource bundles.
Basically, I'm looking for a way to externalize all of our error messages, exceptions,
and GUI elements (like text labels). This will be a Struts application, using
Struts validation. Internationalization itself is a goal, but it is not the driving
factor for externalizing all of our message strings.
I'm seeing to benefits to using the WebLogic i18n functionality. First, all of
the "resource strings" are specified in an XML document that can be validated
and is possibly easier to maintain. Second, accessing these strings becomes a
call to individual methods of a automatically generated TextFormatter class, thereby
freeing client code from having to directly access resource bundles.
Are there any other benefits to using this? I'm just wondering if these benefits
are really worth it, or if it's overkill.
Thanks for the help.
- Jeff

http://forum.java.sun.com/thread.jspa?threadID=677420&messageID=9483204
go through this link...

Similar Messages

  • Resource bundle unknown

    I have problems using components in actions script projects
    in Flex 2.0 beta. See the code below. Every time I use a component
    (e.g. Button) the error message 'Could not find resource bundle
    core' is displayed. Who can help me?
    Code;
    package {
    import flash.display.MovieClip;
    import mx.controls.Button;
    public class Test extends MovieClip
    public function Test()
    var a:Button = new Button();
    this.addChild(a);
    }

    I had the same problem. Next to adding all the 'framework'
    swc's to your project - don't forget to add the framework_rb.swc to
    your project library path. It's located in the 'locale' directory.

  • Custom error messages - resource bundle

    Greetings everyone!
    My JDev version is:  11.1.2.3.0
    I've seen several threads in OTN and outside about this topic, but they seem confused (or may be it's me that is missing something).
    I have this current situation, when because of the presence of a FK in the database, when a try to delete a certain record, a popUp shows up ORA-02292 error code. I don't want to enable cascade deletion (i don't want anything to be deleted in that case at all), so i was trying to customize the error message. I've created a java class and declared it as a resource bundle in the Model project. The content is this:
    public class CustomErrorMessages extends ListResourceBundle {
        private static final Object[][] sMessageStrings = new String[][] {
    {"25014", "Another user has made a modification to this record meanwhile. Please cancel your changes!"},
        {"CREDITOR", "This party is assigned as a creditor/debtor in this contract. It cannot be deleted!"},
        {"DEBTOR", "This party is assigned as a creditor/debtor in this contract. It cannot be deleted!"}
        /**Return String Identifiers and corresponding Messages in a two-dimensional array.
        protected Object[][] getContents() {
            return sMessageStrings;
    25014 - refers to JBO-25014 and it works fine. Now CREDITOR/DEBTOR are the FK mentioned above. If i put 02292  or ORA-02292  instead of them it doesn't work at all. If i let them just like this, it works if i run the Application Module only, but not when i run the application. What does it mean?
    Also, i've noticed that the ViewController project has also a "Resource Bundle" section in the properties, but the content is disabled. Should i do any kind of configuration to make it work?
    Thank you in advance.

    Hi,
    this blog is as close as it gets to your requirement
    http://www.jobinesh.com/2011/03/customizing-business-components-error.html
    Frank

  • How to display Image as Error instead of Error Message from Resource Bundle

    hi,
    I want to display images as error instead of error message from Application Properties in struts1.1
    Ex:
    I want to prompt a user to type password length min. of 6 char. If failed, need to show simple image as error rather
    "Length should be min. 6".
    reagrds
    parthiban.

    BalusC wrote:
    RahulSharna wrote:
    in the respective resource bundle modify the value by something was below
    error.password.length=<img src="/images/password-Length.gif" alt="Password Length Issue" align="center"/>
    OK, it apparently allows HTML in error messages.Yes struts allows it :)

  • Problem with resource bundle messages written inside script of jsf included

    Hi,
    I have a main jsf page with the name Details.jsp.In this page I included Contacts jsf page.I am using resouce bundle for my application.I written all the output text tags with this resouce bundle keys.And I written the Details main page javascript alerts with this resource bundle correctly.But the problem is,I am having script alrts in my included jsf apge i.e. in Contacts page.When I write the script alerts with the resource bundle keys,it is not displaying properly.
    ---------------------------------------------------------------------Details.jsp--------------------------------------
    <f:loadBundle basename="Details_en" var="msg"/>
    <f:view>
    <head>
    <script>
    function saveFn()
    var d=document.getElementById('dform:dinputtext').value;
    if(d=='')
    alert('<h:outputText value="#{msg.requiredValidationMsgkey}"/>');
    return false;
    if(emailValidation()==false)
    return false;
    </script>
    </head>
    <body>
    <h:form id="dform">
    <h:outputText value="#{msg.nameHeader}"/>
    <h:inputText value="#{Bean.name}" id="dinputtext"/>
    <jsp:include page="/Contacts.jsp"/>
    <h:commandButton value="Save" onclick="if(saveFn()==false) return false;" action="#{Bean.saveAction}"/>
    </h:form>
    </body>
    </f:view>
    -------------------------------------------------Contacts.jsp----------------------------------------
    <script>
    function emailValidation()
    var em= document.getElementById('dform:cSubView:cemailtext').value;
    if(em=='')
    alert('<h:outputText value="#{msg.emailValidationMsgKey}"/>');
    return false;
    </script>
    <f:subview id="cSubView">
    <h:inputText value="#{CBean.email}" id="cemailtext" />
    </f:subview>
    The alert message in SaveFn is getting appeared coorectly.But in the function emailValidation is not geting dispalyed correctly.It is appearing as normat output text in the page,but not as an alert.

    Thanks for the reply.
    But I want to do some validations using javascript not only the required validation.
    In my application 5 text fields and one command button are there .Depending upon combination of 2 or 3 text field values, I have to get the values when I pressed command button.
    If I use the h:messages for validators,the conversion error is occurring when the text field takes wrong data.So it is going to give incorrect results when I press the command button.Thats why I am using javascript.
    When user enters wrong data,I want to do validation using javascript and I want to display the alert message using resource bundle.

  • Using numbers as resource bundle message references

    I searched (hopefully using the right keywords) but didn't find anything regarding this...how do you use numeric resources in your resource bundle?
    I'm just trying to reuse the message bundle from a different app...the bundle uses all numbers.
    2260=My message
    This tag is in my page...
    <h:outputText value="#{message.2260}"/>
    But I receive the error below...
    Am I missing something? Is there a workaround for this if it is a shortcoming?
    Thanks....
    2004-10-13 09:29:22,093 DEBUG [com.sun.faces.taglib.html_basic.OutputTextTag] - <id: null class: com.sun.faces.taglib.html_basic.OutputTextTag>
    javax.faces.el.ReferenceSyntaxException: Encountered ".2260" at line 1, column 10.
    Was expecting one of:
        ">" ...
        "gt" ...
        "<" ...
        "lt" ...
        "==" ...
        "eq" ...
        "<=" ...
        "le" ...
        ">=" ...
        "ge" ...
        "!=" ...
        "ne" ...
        "+" ...
        "div" ...
        "mod" ...
        "and" ...
        "or" ...
        "||" ...
            at com.sun.faces.application.ApplicationImpl.checkSyntax(ApplicationImpl.java:912)
            at com.sun.faces.application.ApplicationImpl.createValueBinding(ApplicationImpl.java:399)
            at com.sun.faces.util.Util.getValueBinding(Util.java:943)
            at com.sun.faces.taglib.html_basic.OutputTextTag.setProperties(OutputTextTag.java:101)
            at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1026)
            at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1045)
            at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:732)
            at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:425)
            at com.sun.faces.taglib.html_basic.OutputTextTag.doStartTag(OutputTextTag.java:149)
            at org.apache.jsp.changeHomeSite_jsp._jspx_meth_h_outputText_16(changeHomeSite_jsp.java:1374)
            at org.apache.jsp.changeHomeSite_jsp._jspx_meth_h_form_0(changeHomeSite_jsp.java:1091)
            at org.apache.jsp.changeHomeSite_jsp._jspx_meth_f_view_0(changeHomeSite_jsp.java:142)
            at org.apache.jsp.changeHomeSite_jsp._jspService(changeHomeSite_jsp.java:93)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
            at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
            at java.lang.Thread.run(Thread.java:534)
    Caused by: com.sun.faces.el.impl.parser.ParseException: Encountered ".2260" at line 1, column 10.
    Was expecting one of:
        ">" ...
        "gt" ...
        "<" ...
        "lt" ...
        "==" ...
        "eq" ...
        "<=" ...
        "le" ...
        ">=" ...
        "ge" ...
        "!=" ...
        "ne" ...
        "+" ...
        "div" ...
        "mod" ...
        "and" ...
        "or" ...
        "||" ...
            at com.sun.faces.el.impl.parser.ELParserImpl.generateParseException(ELParserImpl.java:2229)
            at com.sun.faces.el.impl.parser.ELParserImpl.jj_consume_token(ELParserImpl.java:2097)
            at com.sun.faces.el.impl.parser.ELParserImpl.AttrValueExpression(ELParserImpl.java:105)
            at com.sun.faces.el.impl.parser.ELParserImpl.ExpressionString(ELParserImpl.java:45)
            at com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpressionString(ExpressionEvaluatorImpl.java:277)
            at com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:194)
            at com.sun.faces.application.ApplicationImpl.checkSyntax(ApplicationImpl.java:904)
            ... 54 more

    That's it, thanks. (Sub 10 minute response? Supercool--does that merit dukies? (new to posting to the forums))

  • [svn:fx-trunk] 12399: Flex changes for adding in a resource bundle so that the OSMF RTE messages will be localized for Flex .

    Revision: 12399
    Revision: 12399
    Author:   [email protected]
    Date:     2009-12-02 16:22:43 -0800 (Wed, 02 Dec 2009)
    Log Message:
    Flex changes for adding in a resource bundle so that the OSMF RTE messages will be localized for Flex.
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: Gordon
    Tests run: checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/build.xml
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoDisplay.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/bundles/da_DK/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/de_DE/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/en_US/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/es_ES/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/fi_FI/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/fr_FR/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/it_IT/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/ja_JP/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/ko_KR/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/nb_NO/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/nl_NL/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/pt_BR/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/ru_RU/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/sv_SE/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/zh_CN/osmf.properties
        flex/sdk/trunk/frameworks/projects/spark/bundles/zh_TW/osmf.properties

    Thats good news.

  • Resource Bundle message in EL

    Hi out there,
    I would like to use a message from a resource bundle in an Expression Language expression. In the Java EE 5 Tutorial i saw, that a ResourceBundleELResolver exists that seems to do that, but I don't get it to work.
    Here is what I would like to have:
    <fmt:setBundle basename="my.own.cool.Bundle" var="myBundle" />
    <!-- ... -->
    ${myBundle.myKey}This doesn't work. Can anybody please point me to the right way?
    Thank you!
    Peter

    What server are you using? Does it support JavaEE5?
    The ResourceBundleELResolver seems to be a feature of JSP2.1, and as such is only supported by the newest containers.
    <fmt:message/> tag is probably better to use.
    You can export the result to a var and use that var in an expression.
    ie
    <fmt:message var="result" key="${myBundle.myKey}"/>
    ${result}Ok, so its not the cleanest solution, but it should work.

  • Problem in using resource bundle in labels and error message

    Hi All,
    Anyone please help me to fix the problem.
    Actually i am using resource bundle for displaying labels in the jspx, since i developing the page for multilingual that's why i am using bundle in the label attribute.
    When i throw the validation error its displaying like this
    com.sun.faces.el.ValueBindingImpl@106cf24 - Value required.
    How can i fix the code in order display like this
    PO Number - Value required.
    Kindly provide the syntax and changes to be done or sample code.
    Thanks & Regards
    Vimalan Balan

    Hi,
    how do you throw the validation error? Are you adding the message explicitly or what doyou do ? Note that if you reference a binding in your validation then the binding needs to be referenced either by bindings.attr.label or bindings.attr.inputValue.
    Frank

  • No message catalogs for resource javax.faces.context.FACES_IMPL_MESSAGES

    Hi All,
    Just out of curiosity I tried deploying the cardemo.war to JBoss 3.0.3 with its inbeded tomcat container. However when I hit index.html and follow the link I get :
    No message catalogs for resource javax.faces.context.FACES_IMPL_MESSAGES
    thrown. Any idears why? Is the cardemo only working with the tomcat in a standalone mode?
    Jon Ridgway

    I'm having the same problem. Using JBoss 3.20/tomcat 4.12.
    However everything works fine when running tomcat outside of JBoss.
    There is some mention in a catalina readme file located in
    ~$CATALINA_HOME/temp
    This temp directory is used by the JVM for temporary file storage.
    The JVM is configured to use this as its java.io.tmpdir in the
    catalina.sh and catalina.bat scripts. Tomcat is configured to use
    this temporary directory rather than its default for security reasons.
    The temp directory must exist for Tomcat to work correctly.
    I tried setting this JRE option in the run.sh of the JBoss/bin dir.
    Without any positive results.

  • ADF FACES: af:messages does'nt display label with resource bundles

    Hi,
    There is a problem with the af:messages component and error messages containing labels (such as Value is Required error message for required fields).
    If I have an af:inputText with it's label property refering to a resource bundle loaded using the f:loadBundle action, when the Value is Required message is displayed, I get "" for the field name.
    If I replace the label property with a constant value or with an expression refering to a managed bean property, then the label is properly displayed in the error message.
    I suspect this has to do as to when the action of getting the label is done. Maybe the bundle is not availlable at that time. Anyway, this is a bummer as it mean that we cannot use the f:loadBundle action to load resource bundles.
    This happen with AE11. I have not tested this with EA12.

    Thank's!
    I'll try EA12 when I have the time.
    I also found that in our JSPs, we've put the f:loadBundle ouside of the f:view tag. I'll fix that in our codebase.
    While researching a fix, I found out that using a managed bean (which implement Map interface) to load the bundle based on the name refered in the expression language is a lot more intuitive and allow for an easier management of the different resource bundle than the f:loadBundle tag.
    Basically, our EL expression are now #{bundles.bundleName.property} we replace any "_" in bundleName with "." and then lookup this name as a ResourceBundle with the locale of the view. We keep the managed bean in the request scope it remember each bundle it loaded.
    We could have done it with a custom VariableResolver. Maybe a future release of the JSF spec could provide a standard variable name that would implement the same behaviour. This way, one does not have to load each bundles before hand and only the bundles accessed by the JSP will be loaded.

  • Trouble resolving resource bundle message with validator.

    Hi,
    I'm using an af:validateDateTimeRange component (with only a minimum date), and want to change the validation message that is displayed to a custom message.
    I have this message in the resource bundle, but the component does not seems to pick it up, and just uses the default message instead. The only ways I've got it to display the correct message are :
    - Hardcoding the message into the minimumMessageDetail attribute (currently done this way).
    - binding the minimumMessageDetail attribute to a managed bean's property.
    Is there any reason why it's not picking up the message from the resource bundle? (Yes, the resource bundle is set up correctly - it's used everywhere throughout the application.)

    Ok my diagnosis of this is that references to keys in a property bundles from the attributes
    maximumMessageDetail
    minimumMessageDetail
    notInRangeMessageDetail
    Do not work. Hardcoded values work in notInRangeMessageDetail, but not the other two - does that agree with what you see?

  • How to load the resource bundle message on confirmation popup

    hi every one
    i am using java script confirmation message on my delete button.
    this is my sample for that one
    <h:commandButton action="#{createCurrency.removeCurrency}"
             onclick="if (!confirm('Are you sure to delete this value?')) return false" value="#{messages.Delete}"/>    i need to load the "Are you sure to delete this value?" from resource bundle.
    is there any way to load above message from resource bundle.
    thiagu.m

    If you're using JSF 1.2, you can add the bundle config in your faces-config.xml file like this:
    <resource-bundle>
       <base-name>mypackage.i18n.MessageResources</base-name> // i18n is shorthand for internationalization
       <var>msg</var>
    </resource-bundle>     
    <locale-config>           
       <default-locale>en</default-locale>  // or whatever locale you preferred 
       <supported-locale>...</supported-locale> // other locale defined here if you need them
    </locale-config>Then create a property file called "MessageResources_en.properties. In this file, you can define something like:
    {code}
    MSG_CONFIRM=Do you wish to delete this value?
    // add other messages here. Syntax is: key=value
    {code}
    Then reference the bundle's message in your form as per normal:
    {code}
    !confirm(#{msg.MSG_CONFIRM}))
    {code}
    I haven't tried the above codes but it should help you get started.
    Edited by: icepax on 13/11/2009 19:44

  • Overriding JBO messages from JHS resource bundle

    Hello,
    JHS 10.1.2.0
    in you jhsdevguide.pdf on page 3-97 the page end with the following text
    -- start of text
    Suggestion: You can override the text for several types of messages (for
    example JHS- or JBO-errors) by specifying the error code as an entry in the
    Resource Bundle. Make sure you compile (rebuild) the class after making any
    additions; otherwise you might lose them the next time you run JAG.
    -- end of text
    I was able to get the JHS- messages to work, however I had no sucess with JBO- messages.
    Do I need to do something extra/ different?
    regards
    Sanjiv

    Sanjiv,
    The documentation is wrong in the sense that it does not apply to JBO message. To customize JBO error messages, you can follow the steps as descroibed in the JDeveloper online help topic "Customizing Error Messages", which can be found under Building J2EE Applications -> Working with the Business Tier -> Developing ADF Business Components -> Implementing Business Logic -> Implementing Validation Logic -> Handling Exceptions.
    Steven Davelaar,
    JHeadstart Team.

  • Problem using Resource Bundle in XSLT File

    Hi All,
    I've been trying to use Resource Bundle on my XSLT file with no success for the last 2 weeks. So I would like some help to definitely end this problem.
    The fact is that i have a property file that i would like to read and it works fine when i use jsp or a servlet however when i try to call the same property file using my XSL i get the message below:
    java.util.MissingResourceException: Can't find bundle for base name thoth, locale en_US
    Follow the code from my Stylesheet that i'm calling the resource bundle:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:java="java.util.ResourceBundle" exclude-result-prefixes="java" version="1.0">
    <xsl:strip-space elements="*"/>
    <xsl:output method="html" indent="yes" version="4.0"/>
    <xsl:output encoding="ISO-8859-1"/>
    <xsl:template match="page">
    <html>
    <body>
    <xsl:apply-templates select="paragraph"/>
    <xsl:variable name="resources" select="java:getBundle('thoth')"/>
    <xsl:value-of select="java:getString($resources,'general.title')"/>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet. Should i have to put it some other place? Do i have some other way to read this file and show the information from the file?
    I would appreciate any help
    thanks in advance and Regards
    Fabio

    Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet.
    Is the property file in your classpath? or whether the directory where the property file is residing is in your classpath. Please put only the directory where the property file is located in the classpath and try again.
    It may be working fine with the servlet because j2ee servlet containers put the classes and lib directory automatically in the classpath therefore resource bundle gets loaded even without putting it explicitly in the classpath. This doesn't happen when you try to test some component from the console.
    Let me know if this does not work.
    regards,
    Abhishek.

Maybe you are looking for

  • Slow authentication on Windows

    I've set up small office network - 6 Windows computers + one Mac with OS X Server 10.4.4. Everything works OK (file services, open directory....) but I have one problem - when Windows users try to authenticate on domain (OS X server runs as PDC), thi

  • Sending email using SMTP and Java

    Hi guys I am using the following code to send an email: private void sendEmail(String mDate, String time) {                Date date = new Date();         DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.FULL, Locale.ENGLISH);         //

  • Consolidate All Windows option not functional in Illustrator CC 2014

    I just downloaded the Illustrator CC 2014 update, and I cannot for the life of me consolidate all my open documents to one window. In other words I want to dock all open documents to the top in tabs. In the regular CC version, if you have multiple do

  • Not able to do VL09 ( Reversal forReturn Delivery)

    Dear All, While doing the VL09 for reversal of Return Delivery i am getting this error. I searched this forum, and got some solutions, but not able to understand it. Same thing i am able to do it on Development server but not on Production. PGI Rever

  • How do I insert the Date in time into my file?

    VI is Attached? Attachments: Temperature_Testing_Modified.vi ‏71 KB