struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pat Slater <pslate...@yahoo.com>
Subject WebApp Cannot seem to locate Resource Bundle
Date Tue, 02 May 2006 22:04:03 GMT
I have defined Action Servlet configuration in web.xml as:
   <servlet>
     <servlet-name>action</servlet-name>
     <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
     <init-param>
       <param-name>application</param-name>          <param-value>com.xxx.i18nMessages.MessageResources</param-value>
     </init-param>
     <init-param>
       <param-name>config</param-name>
       <param-value>/WEB-INF/conf/struts-config.xml</param-value>
     </init-param>
     <init-param>
       <param-name>debug</param-name>
       <param-value>2</param-value>
     </init-param>
     <init-param>
       <param-name>detail</param-name>
       <param-value>2</param-value>
     </init-param>
     <load-on-startup>2</load-on-startup>
   </servlet>
 
 But, when I put this into a jsp page:
 <%@ taglib uri="/WEB-INF/conf/struts-bean.tld" prefix="bean" %>
 <bean:message key="loginEntry.userName"/>
 
 then, I the exception:
 ERROR - ApplicationDispatcher.invoke(719) | Servlet.service() for servlet jsp threw exception
 javax.servlet.jsp.JspException: Missing message for key "loginEntry.userName"
 
 ERROR - InsertTag$InsertHandler.doEndTag(922) | ServletException in '/WEB-INF/tiles/login/loginFields.jsp':
Missing message for key "loginEntry.userName"
 javax.servlet.ServletException: Missing message for key "loginEntry.userName"
  
 My struts app cannot seem to resolve the loginEntry.userName key-value pair for some reason....
Need help on this. Thank you very much
 
		
---------------------------------
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2ยข/min with Yahoo!
Messenger with Voice.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message