Greetings all
If I might add to Mr McDonnell's commentary-
You can also handle message strings thru your init-param in your Struts
servlet descriptor (web.xml)
<init-param>
<param-name>application</param-name>
<param-value>
com.mycompany.mypackage.MyResources
</param-value>
</init-param>
OR you can add <message-resources> tag in struts-config.xml
<message-resources parameter="PackageName.ApplicationResources"/>
where packagename is a folder off of web-inf/classes
Aigh Vie,
Martin-
----- Original Message -----
From: "McDonnell, Colm (MLIM)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Friday, June 17, 2005 9:36 AM
Subject: RE: "Cannot find message resources under key
org.apache.struts.action.MESSAGE " Error
Is there a file named ApplicationResources.properties in the
WEB-INF/classes/employees/view folder within your deployed application?
If so, does this file contain a property for app.title (e.g.
app.title=Foo)?
-----Original Message-----
From: EROL TEZCAN [mailto:[EMAIL PROTECTED]
Sent: 17 June 2005 14:31
To: sturts_apache_user sturts_apache_user
Subject: "Cannot find message resources under key
org.apache.struts.action.MESSAGE " Error
Hi All,
I am working to run an example in Mastering Jakarta Struts Chapter 11 .
When I want to run this application , I got an error.
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtil
s.java:1103)
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
at _login._jspService(login.jsp:8)
[SRC:/login.jsp]
In login.jsp at row 8 : <title><bean:message key="app.title" /></title>
I defined app.title key in ApplicationResources.properties file and ve
this file is defined like
<message-resources parameter="employees.view.ApplicationResources"/>
in struts-config.xml file.
Also, in login.jsp struts-taglibs are defined like
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
Why it gives this error and how can I solve?
Erol
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--------------------------------------------------------
If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy, retain
or redistribute it. Click here for important additional terms relating to
this e-mail. http://www.ml.com/email_terms/
--------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]