I am trying to run my first
Struts -- using the tutorial "Login" example at
http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp#struts There is a MessageResources.properties file that allows for all strings displayed in an application to be defined. Nonetheless, After I
entered
http://localhost:8080/struts/jsp/LoginView.jsp in the browser address bar, I got HTTP Status 500. I know that the LoginView.jsp file was found; otherwise, I would have gotten HTTP Status 404 -- LoginView file not found error.
The problem is that the text provided in the MessageResources.properties file could not be picked up - I think that it is because the
Tomcat cannot find the MessageResources.properties file.
I have checked MessageResources.properties:
1. name of the file: spelling is correct
2. location of the file: it is in the directory together with all compiled
servlet class files; i.e. c:\tomcat\webapps\struts\WEB-INF\classes\test\struts
3. type of the file: the Windows Explorer shows the type of the
MessageResources.properties file is a PROPERTIES File
The contents of the web.xml file that is in the c:\tomcat\webapps\struts\WEB-INF directory is shown below:
I need your experience in telling what else could go wrong. Please help.