How are you deploying your app? Packaged with Ant?
Many times, people forget to have resources copied during the build process. This is automatically done for us with most IDEs, but Ant won't do it unless you tell it to.
Open your .war and make sure it is there under /WEB-INF/classes/org/app/resources
-- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx
----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Wednesday, January 19, 2005 8:26 AM
Subject: Message Resources not displayed
<!--Since I got no answer yesterday I thought I try again -->
Hi there,
I have a small Struts application which requires a user to login before he can call an admin action.
The application is running fine under Tomcat 4.1 on my local system.
When I deploy it to iPlanet WebServer 6.0 SP5 I have the problem that the error messages in ApplicationResouces.properties are not displayed.
The ApplicationResources.properties is specified within struts-config.xml.
Everything else works correct.
So for example if I call an admin action and the user is not logged in yet, he will be redirect to the login screen. (This works fine)
When I submit wrong credentials for the login the login page shall be displayed again with the appropriate error message.
This is the line where I add the error in my LoginAction...
errors.add("ActionErrors.GLOBAL_ERROR", new ActionError("error.login.failed"));
In the JSP page I use ... <html:errors/>
and the in the ApplicationResources.properties I have a line like ... error.login.failed = <b>Your username or password is not valid</b>
The struts-config.xml has this line ... <message-resources parameter="org.app.resources.ApplicationResources"/>
As I said before on Tomcat the error messages are displayed when needed.
Your input is much appreciated,
Thanks
Karim
__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp
--------------------------------------------------------------------- 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]