Lindsay -
You don't say what IDE you are using. I'm also new to struts and I'm using WebSphere
Application Developer 4.0. WSAD has *two* copies of the
ApplicationResources.properties file. One under the <applicationRoot>/source folder
and one under the <applicationRoot>/webApplication/WEB-INF/classes folder. For most of
a day I made changes to the .../classes version only to discover it was overlaid by
the .../source copy when I deployed the application. D'oh!
I guess I'm saying make sure you are working with the right copy of the .properties
file.
/\/\ark
___________________________________
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us
The best laid plans o'mice and men gang aft aglay...
-Robert Burns
>>> [EMAIL PROTECTED] 03/13/02 04:54AM >>>
Hi everyone,
I've just began using Struts this week and it seems very useful, but I am
totally lost for ideas when it comes to this exception:
"Exception in R( /struts-SACT + /login.jsp + null) -
javax.servlet.ServletException: Missing message for key login.title"
I have placed my ApplicationResources.properties in the /classes directory
and here's the relevant part of web.xml:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
.....
Here's my ApplicationResources.properties (it is very simple at present -
which makes this error all the more annoying):
error.username.required=Username is required
error.password.required=Password is required
error.database.unknown=Sorry, an unknown database error occurred
errors.footer=</ul><br>
errors.header=<h2><font color="red">Validation Error</font></h2>You must
correct the following error(s) before proceeding:<ul>
login.title=SME Agent Creation Tool - User Login
prompt.login.username=Username
prompt.login.password=Password
And here's a part of my login.jsp:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html>
<head>
<title><bean:message key="login.title"/></title>
I heard that this is a common problem and that I should look at the mailing
list archive, but I find no help there at all.
Many thanks for any input.
Lindsay
Lindsay Hamoudi
Web Application Developer
BTexact Technologies
e-mail: [EMAIL PROTECTED]
tel: (+44) (0)1473 605491
mobile: (+44) (0)7985 114296
Orion Building (B62-MH), PostPoint 12, Adastral Park, Martlesham, Ipswich
IP5 3RE, UK
BTexact Technologies is a trademark of British Telecommunications
plc
Registered office: 81 Newgate Street London EC1A 7AJ
Registered in England no. 1800000
This electronic message contains information from British
Telecommunications plc which may be privileged or confidential. The
information is intended to be for the use of the individual(s) or entity
named above. If you are not the intended recipient be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited. If you have received this electronic message in error, please
notify us by telephone or email (to the numbers or address above)
immediately.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>