Struts message-resource problems in jboss

Hi,
I'm fairly new to jsp/servlets and I'm trying to use the struts framework.
I have a html file with the struts bean taglib defined and the following line :
<bean:message key="index.title" />
In struts-config.xml I have the following :
<message-resources parameter="MyAppResources" />
And I put MyAppResources.properties in WEB-INF/classes
I then add the files to myapp.war and deploy it in jboss, but when I try to load the page I get the following exception :
javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
Any help would be greatly appreciated!!!

and if, after deploying, you delete the war file? Does it work then?
Problem seems to be that in a war file the directories arent as the class loader expects them, I think.

Similar Messages

  • [Struts] Datasource and message-resource

    In my web application I use JBoss Application server.
    I've defined datasource parameters in jboss-config.xml.
    Must i insert the same parameters in struts-config.xml? why?
    How i can use message-resource?
    Thanks.
    Message was edited by:
    PremierITA
    Adding question

    u should use sturts-config for the entry becoze ur entry should be ur application specific,it should not be ur server specific....if u do not use wd strut-config then ur app may not run at any other place(server)...
    i do not have to much any idea an JBoss...
    bye

  • Cannot find message resources under key org.apache.struts.action.MESSAGE ?

    Hi All,
    I am getting the following error.. while running a simple application in struts.
    Cannot find message resources under key org.apache.struts.action.MESSAGE ?
    As I have searched in google but could not find the concreate example so please help and give me a proper answer..
    my struts-config.xml file is as .....
    <code>
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
    <struts-config>
    <!-- ========== Form Bean Definitions ============ -->
    <form-beans>
         <form-bean name="login" type="test.struts.LoginForm" />
    </form-beans>
    <!-- ========== Global Forward Definitions ========= -->
    <global-forwards>
    </global-forwards>
    <!-- ========== Action Mapping Definitions ======== -->
    <action-mappings>
    <action
         path="/login"
         type="test.struts.LoginAction"
         name="login"
         input="/jsp/LoginView.jsp"
         validate="true">
         <forward name="valid" path="/jsp/MainMenu.jsp" />
         <forward name="invalid" path="/jsp/LoginView.jsp" />
         </action>
    </action-mappings>
    <message-resources null="false" parameter="test.struts.MessageResources"/>
    </struts-config>
    </code>
    And my LoginView.jsp file is as:
    <code>
    <!-- LoginView.jsp -->
    <%@ taglib uri="/struts/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/struts/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/struts/WEB-INF/struts-logic.tld" prefix="struts" %>
    <HTML>
    <HEAD><TITLE><bean:message key="title.login" /></TITLE></HEAD>
    <BODY>
    <bean:message key="heading.login" />
    <html:errors />
    <html:form action="/login">
         <p>
         <bean:message key="label.userId" />:
         <html:text property="userId" size="10" />
         <br>
         <bean:message key="label.passWord" />:
         <html:password property="passWord" size="10" />
         <br><br>
         <html:submit>
              <bean:message key="button.submit" />
         </html:submit>
    </html:form>
    </BODY>
    </HTML>
    </code>
    MessageResources.properties is as :
    <code>
    button.submit=Send for Verification
    error.no.userId=<li>User ID is a required field</li>
    error.no.passWord=<li>Password is a required field</li>
    error.invalid.login=<li>The User ID and/or Password are invalid. Please try again.</li>
    errors.footer=</ul><hr>
    errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
    label.userId=User ID
    label.passWord=Password
    heading.login=<H2>Enter your user information</H2>
    title.login=Login Screen
    title.mainmenu=Welcome
    heading.mainmenu=<H1>Welcome!</H1>
    label.userType=<H2>You are authorized to use this system as a</H2>
    </code>
    Please reply soon.
    Thanks in advance
    Amitindia

    Hi All,
    I am getting the following error.. while running a simple application in struts.
    Cannot find message resources under key org.apache.struts.action.MESSAGE ?
    As I have searched in google but could not find the concreate example so please help and give me a proper answer.. my struts-config.xml file is as .....
    <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts- 
      config PUBLIC "-//Apache Software Foundation//DTD Struts
    Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-
    config_1_0.dtd"> <struts-config> <!-- ========== Form Bean
    Definitions ============ --> <form-beans> <form-bean name="login"
    type="test.struts.LoginForm" /> </form-beans> <!-- ========== Global Forward Definitions ========= --> <global-forwards> </global-
    forwards> <!-- ========== Action Mapping Definitions ======== --> <action-mappings> <action path="/login" type="test.struts.LoginAction" name="login" input="/jsp/LoginView.jsp" validate="true"> <forward name="valid" path="/jsp/MainMenu.jsp" /> <forward name="invalid" path="/jsp/LoginView.jsp" /> </action> </action-mappings> <message-resources null="false" parameter="test.struts.MessageResources"/> </struts-config>
    And my LoginView.jsp file is as:
    <!-- LoginView.jsp --> <%@ taglib uri="/struts/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/struts/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/struts/WEB-INF/struts-logic.tld" prefix="struts" %> <HTML> <HEAD><TITLE><bean:message key="title.login" /></TITLE></HEAD> <BODY> <bean:message key="heading.login" /> <html:errors /> <html:form action="/login">
    <bean:message key="label.userId" />: <html:text property="userId" size="10" /> <br> <bean:message key="label.passWord" />: <html:password property="passWord" size="10" /> <br><br> <html:submit> <bean:message key="button.submit" /> </html:submit> </html:form> </BODY> </HTML>
    MessageResources.properties is as :
    button.submit=Send for Verification error.no.userId=<li>User ID is a required field</li> error.no.passWord=<li>Password is a required field</li> error.invalid.login=<li>The User ID and/or Password are invalid. Please try again.</li> errors.footer=</ul><hr> errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul> label.userId=User ID label.passWord=Password heading.login=<H2>Enter your user information</H2> title.login=Login Screen title.mainmenu=Welcome heading.mainmenu=<H1>Welcome!</H1> label.userType=<H2>You are authorized to use this system as a</H2>
    Please reply soon. Thanks in advance Amitindia                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Struts question - message-resources

    Hi,
    I'm trying to do someting which should be pretty straight forward, but can't figure it out. In my application.properties file I have a setting. (DEBUG = true). I can spit this value out in my jsp easy enough using
    <bean:message key="DEBUG"/>
    But what I want to do is be able to decide in the jsp (using some logic) if the flag is set to true, then show some hyperlinks (for debugging purposes).
    What I kinda want to do is this (i know this doesnt work)....
    <logic:equal name="message?" property="DEBUG" value="true">
    <p>debug mode</p>
         .. print some stuff
    </logic:equal>
    Obviously I'm not getting a handle to a bean here & thats why it doesnt work. But is there a simple way to do this. I dont want to code this property into into a bean - there must be some way of doing it.
    I was looking around on the web and found a site where somebody mentioned that a "messages" bean is created and put in the session. If this is true then I could possibly get the above syntax to work, but I dont know how to get the name of the bean - (message doesnt work)
    Any help would be greatly appeciated
    Paul

    I don't think the logic tags are tied into struts like the bean and html tags. The only way I know of is to get the message resources the hard way...
    <%
    MessageResources mr = (MessageResources)application.getAttribute(Globals.MESSAGES_KEY);
    Locale locale = (Locale)session.getAttribute(Globals.LOCALE_KEY);
    pageContext.setAttribute("DEBUG", mr.getMessage(locale, "DEBUG"));
    %>
    <logic:equals name="DEBUG" value="true">
    That should work, I think.

  • Problem Displaying Struts Message - UIX

    Hi,
    I am using UIX, ADF Model and JDeveloper 10.1.2.0.0 (Build 1811)
    I want to display some confirmation messages on a UIX Page -by example: delete successful or user XYZ added-
    I already put the messages using the next code: (overwriting the findForward method)
    ActionMessages messages = new ActionMessages();
    messages.add("feedback", new ActionMessage("tiposdocumentos.message.update.success", val1, val2));
    saveMessages(actionContext.getHttpServletRequest(), messages);
    After that I put a "MessageBox" on the UIX page but I am unable to display the messages...
    Any idea?
    Thanks

    Hello,
    I looked around on this forum, and found 2 posts that hopefully will help.
    Using Struts ActionErrors in UIX
    Re: Displaying Struts messages/errors in 10g
    I'm not sure if you did this or not, but in case you didn't:
    add to your <page> element:
    xmlns:struts="http://xmlns.oracle.com/uix/struts"
    Then use a messageBox like this:
    <struts:dataScope xmlns="http://xmlns.oracle.com/uix/ui"
                                          xmlns:data="http://xmlns.oracle.com/uix/ui">
    <contents>
       <messageBox messageType="error" automatic="true"/>
    </contents>
    </struts:dataScope>Jeanne

  • Struts Html tag problem in Weblogic 8.1

    Hi
    I am using weblogic8.1 Application server
    I have written a simple web application in struts that accepts
    username and password in "login.jsp" and corresponding "bean" ActionForm
    for the same.
    Below are my application source files......
    login.jsp
    <%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
    <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <html:html>
    <head>Struts Test</head>
    <body bgcolor="#E6F1FC">
    <html:form action="login.do">
    <table>
    <tr>
    <td><html:text property="uname" value=" "/></td>
    <td><html:submit>SUBMIT</html:submit></td>
    </tr>
    </table>
    </html:form>
    </body>
    </html:html>
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
    Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <taglib>
    <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    </web-app>
    struts-config.xml
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="LoginFrom" type="com.nit.StrutsEx.LoginFrom"/>
    </form-beans>
    <action-mappings>
    <action path="/login" type="com.nit.StrutsEx.LoginAction" name="LoginFrom" validate="false"
    input="/login.jsp">
    <forward name="success" path="/success.jsp"/>
    </action>
    </action-mappings>
    <message-resources parameter="ApplicationResource" null="false"/>
    </struts-config>
    ActionForm
    package com.nit.StrutsEx;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.*;
    import javax.servlet.*;
    import java.io.*;
    public class LoginForm extends ActionForm
    private String uname=null;
    public void setUname(String uname){
    this.uname=uname;
    public String getUname(){
    return this.uname;
    public void reset(ActionMapping am, HttpServletRequest req) {
    this.uname=null;
    public ActionErrors validate(ActionMapping am,HttpServletRequest req)
    System.out.println("I am in Validate");
    return null;
    ActionServlet
    package com.nit.StrutsEx;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import javax.servlet.*;
    import java.io.*;
    public class LoginAction extends Action
    public ActionForward execute(
    ActionMapping am,
    ActionForm af,
    HttpServletRequest req,
    HttpServletResponse res) throws ServletException , IOException
    return am.findForward("success");
    My application runs well under tomcat but when i deploy it on Weblogic 8.1 it gives following error
    Compilation of 'E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java' failed:
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:151: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 4:
    <html:html>
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:168: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 8:
    <html:form action="login.do">
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:203: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 13:
    <td><html:submit>SUBMIT</html:submit></td>
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:216: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 13:
    <td><html:submit>SUBMIT</html:submit></td>
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:226: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 16:
    </html:form>
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:235: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 18:
    </html:html>
    Full compiler error(s):
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:151: cannot resolve symbol
    symbol : variable EVAL_BODY_BUFFERED
    location: interface javax.servlet.jsp.tagext.BodyTag
    if (_int0 == BodyTag.EVAL_BODY_BUFFERED) { //[ /login.jsp; Line: 4]
    ^
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:168: cannot resolve symbol
    symbol : variable EVAL_BODY_BUFFERED
    location: interface javax.servlet.jsp.tagext.BodyTag
    if (_int1 == BodyTag.EVAL_BODY_BUFFERED) { //[ /login.jsp; Line: 8]
    ^
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:203: cannot resolve symbol
    symbol : variable EVAL_BODY_BUFFERED
    location: interface javax.servlet.jsp.tagext.BodyTag
    if (_int2 == BodyTag.EVAL_BODY_BUFFERED) { //[ /login.jsp; Line: 13]
    ^
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:216: cannot resolve symbol
    symbol : variable EVAL_BODY_BUFFERED
    location: interface javax.servlet.jsp.tagext.BodyTag
    if (_int2 == BodyTag.EVAL_BODY_BUFFERED) out = pageContext.popBody(); //[ /login.jsp; Line: 13]
    ^
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:226: cannot resolve symbol
    symbol : method doAfterBody ()
    location: class org.apache.struts.taglib.html.FormTag
    } while (_html_form0.doAfterBody() == IterationTag.EVAL_BODY_AGAIN); //[ /login.jsp; Line: 16]
    ^
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:235: cannot resolve symbol
    symbol : method doAfterBody ()
    location: class org.apache.struts.taglib.html.HtmlTag
    } while (_html_html0.doAfterBody() == IterationTag.EVAL_BODY_AGAIN); //[ /login.jsp; Line: 18]
    ^
    6 errors
    Wed Jul 25 17:06:07 GMT+05:30 2007
    Please reply the solution

    I don't know about that, but I am using MyFaces and tomahawk with WLS8.1 sp5 jdk1.4.2_05 and it works fine.
    I do remember getting such an error when I moved from Sun RI to MyFaces and all I can recall is that it was a commons library mismatch problem or some classpath problem...

  • Cannot find message resources under key

    Hi All,
    I get the following error in the JSP page in weblogic 9.2 environment. The same JSP works fine in 8.1
    Cannot find message resources under key ${language}' javax.servlet.jsp.JspException: Cannot find message resources under key ${language} at org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.java:1103) at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294) at org.apache.strutsel.taglib.bean.ELMessageTag.doStartTag
    The web.xml entry:
    <servlet><servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>application</param-name>
    <param-value>com.ccrg.resources.common.ApplicationResources</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    struts-config.xml entry:
    <message-resources parameter="resources.ApplicationResources"/>
    <message-resources parameter="resources.TextResources_Profile_en" key="TEXT_RESOURCES_PROFILE_en"/>
    <message-resources parameter="resources.TextResources_Profile_fr" key="TEXT_RESOURCES_PROFILE_fr"/>
    the login.jsp:
    <%@ taglib uri="/WEB-INF/avis-html.tld" prefix="avishtml" %>
    <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
    <%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %>
    <%@ taglib uri="/WEB-INF/struts-logic-el.tld" prefix="logic-el" %>
    <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
    <c:set var="language" value="TEXT_RESOURCES_PROFILE_${SiteLanguage}/profile"/>
    </c:if>
    <bean-el:message key="profile.login.pi.memberLogin" bundle="${language}"/>
    thanks,
    Balaji

    Hi Balaji,
    Did you find any solution ?
    I have the same problem.
    Thanks in advance!

  • Error message "resource does not exist"

    C6; have unistalled and reinstalled ovi store three times; now I get into the store, but when attempting to download app, get error message "resource does not exist". what is that???

    hey guys just updating you all.. i wrote previously how my ovi store wasn't working, it gave me an error message 'resource does not exist'. i did soft/hard reset, also uninstalled ovi store and reinstalled STILL it wasn't working. It lasted a day. And today it's working fine. i think it was a problem with their server. It sorted it self out
    But guys i did contact the team, and i got a reply that said i should do the following if it still doesn't work:
    1. GO TO MENU
    2. GO TO INTERNET
    3. CLICK ON WEB
    4.GO TO OPTIONS
    5. GO TO CLEAR PRIVACY DATA
    6. DELETE CATCHE AND COOKIES
    That should apperantly work.
    If not guys, then i wouldn't worry. Just like mines, yours should sort it self out

  • Message Resource Error

    Hi,
    I've written a Struts application which uses i18n,
    I'm getting the following exception
    javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:107)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856).
    Please help me .....

    See:
    http://struts.apache.org/struts-action/userGuide/building_view.html
    The easiest thing to do is to store your application .properties files in your application's classes folder (WEB-INF/classes). Then in your struts-config file you just add:
    <!-- message resources -->
    <message-resources parameter="ApplicationResources"/>
    Assuming you have ApplicationResources.properties, ApplicationResources_xx.properties. Make sure you put this tag in the relevant place for your struts-config DTD.
    You also need to make sure you have an XML parser available (and not too many), so basically check you have an Xerces jar in your classpath somewhere. With tomcat this means putting the jar in the relevant directory (i.e. WEB-INF/lib)

  • How to display the message for debugging on jboss console

    Hi every body,
    I have found the classcastexception. For resolving this problem, I want to display messages for debugging on jboss console.
    Can any body help me to solve this problem.
    Thanks
    Best regards,

    I have found the classcastexception.So fix it, what do you need debugging statements for?
    I think you mean "I need to find a ClassCastException in my server code, but I haven't got a stack-trace, so I can't figure out where to put a printStackTrace() statement... so I need to put some debug statements in the code, but I'm not even sure where they will be displayed."
    Am I warm?
    Well, I don't know about jBoss, but weblogic server sends its standard output stream back to the standard output stream of the process which started it... so you redirect stdout to a file when you start your server, and then you can tail it or whatever... and then of course you just do System.out.println statements.
    Hope that helps. Keith.

  • How to get bundled message resource in validation.xml?

    Hi,
    Is it possible to get a bundled message resource in the validation.xml? Basically i want to do the following validation:
    <form name="testForm">
             <field property="name" depends="required">
                  <arg0 key="form.testForm.name" />
             </field>
    </form>But the message "fom.testForm.name" is stored in a resource file stated as below in struts-config.xml:
    <message-resources parameter="com.test.TestResources" key="test"/>Means if u want to use this message in jsp, u need to add bundle="test". In this case, how to write the validation? Possible to get this message?

    u can give your message key value pair the default
    application resource bundle..Do u mean that here i could only use default application resource messages? Other resource messages could not be used for validation?

  • Access message resource without facescontext

    Hi
    I am developing a JSF application which involves periodic schedulers running in the background, ie Java threads that are CRON-triggered, using notation similar to below:
    @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "cronTrigger", propertyValue = "10 * * * * ?") })
    public class MyClass {
    ...code
    }The problem i have is that i am now trying to access the message resource bundle, which would normally be possible in my Java class using the following code:
    FacesContext context = FacesContext.getCurrentInstance().getApplication().getMessageBundle();However, it seems that when running a CRON-triggered thread, the facescontext is returned as null - i'm not entirely sure why. My question is, is there an alternative, more "static" way of accessing the message resource bundle when the facescontext is not available?
    Thanks in advance
    -Rich

    Thanks for your reply.
    I have tried hard-coding the message bundle name as you suggest, and the code to retrieve the message bundle now looks like this:
    ResourceBundle bundle =  ResourceBundle.getBundle("messages", Locale.ENGLISH,
                                     getCurrentClassLoader(params));("messages" is the name i've defined in faces-config.xml)
    However i know get the exception:
    java.util.MissingResourceException: Can't find bundle for base name messages, locale en
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
    Am i missing something?
    Thanks, Rich

  • The message "A problem has occurred trying to process your request. Please try again later. We apologise for any inconvenience this may have caused." is displyed when I try to log on to my internet banking. Please can you tell me why?

    Since upgrading to the latest version of Firefox, I'm now getting the message "A problem has occurred trying to process your request. Please try again later. We apologise for any inconvenience this may have caused." when I try to log onto my internet banking site. This occurs after going thru the first two steps of the login process. I don't get this problem when I login to all my other bookmarked sites, or when I use Internet Explorer. I'm using Windows XP. Any suggestions? (Note: I've just reloaded version 6 of Firefox, but it's not made any difference.)

    See here  >  http://support.apple.com/kb/HT1527
    From Here  >  http://support.apple.com/kb/TS1368
    More info here  >  http://www.apple.com/support/itunes/downloading/

  • Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Perhaps let's first try updating your Apple Software Update.
    Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
    If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time?

  • Problem with HP pavillion dv7 giving message (a problem with the internal fan enter = shutdown

    HP Pavillion DV7 notebook PC
    Windows 7 64
    intel I5
    6 gig memory
    service pack 1
    I am trying to identify a problem with my HP Pavillion dv7 laptop
    Several months ago it started getting hot and showing messages about problems with the internal fan and battery. It would say enter = shutdown and shut off. I suspected a bad battery so I checked it without it just plugging it in with the power cable. It seemed to work better so I assumed that was the problem.
    I ordered a new battery and it worked for a while. The problem came back and is getting worse. I can run it without the battery for a while but it gets got and shows the same message.
    I read on here that flashing and updating the bios worked for some but the latest update gives me an error IHISI not support BIOS then Insyde flash not supported.
    any help would be great this PC has a lot of info on it and I dont think it is a lost cause
    thanks

    Hi duddy, sorry to hear that you are having issues with your computer over heating.  I have found a document that will assist you with Restoring the BIOS.  http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c02693833&lc=en&product=5199538&tmp...
    I have also found a document that will assist you with Troubleshooting and Overheating and Auto shutdown issue.    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c03904182&lc=en&product=5199538&tmp...
    If you are still having issues, please let me know and I will be happy to offer more assistance..
    Thank you.
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

Maybe you are looking for