I don't know about that.  I get the same error if it can't find the file.
 
I moved my properties file, restarted the server, and this is the message:
 
javax.servlet.ServletException: Missing message for key internalLogin.title
----- Original Message -----
Sent: Friday, April 13, 2001 4:11 PM
Subject: RE: struts can't find properties file

it's finding the file but not the key
 
-----Original Message-----
From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 6:10 PM
To: [EMAIL PROTECTED]
Subject: Re: struts can't find properties file

Anyone know if this error means it's finding the file but not the key, or just not finding the file.
 
500 Internal Server Error
javax.servlet.jsp.JspException: Missing message for key main.title at
----- Original Message -----
From: G.L. Grobe
Sent: Friday, April 13, 2001 4:18 PM
Subject: struts can't find properties file

I've got the cais.properties file in the ~/WEB-INF/classes dir. Here's the error and below that is the section of web.xml that points to the properties file and below that is the section of index.jsp  with the message key itself.
 
Any help much appreicated.
 
 500 Internal Server Error
javax.servlet.jsp.JspException: Missing message for key main.title at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled Code) at
...
 
   <servlet>
      <servlet-name>action</servlet-name>
      <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
      <init-param>
         <param-name>application</param-name>
         <param-value>cais</param-value>
      </init-param>
 
<%@ 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="main.title" />
</title>

Reply via email to