Hi Oleg,
That is the way I have it set up.... Unless my directory structure is wrong?
Directory structure as follows
web group name
web
WEB-INF
classes
John
-----Original Message-----
From: Oleg V Alexeev [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 10:54 AM
To: [EMAIL PROTECTED]
Subject: Re[2]: newbie question: Missing message for key
index.title error
Hello John,
Remove resources from classpath and place it to the WEB-INF/classes
directory. For example
WEB-INF
classes
ApplicationResources.properties
ApplicationResources_en.properties
(...place here resources for every language used in your
app...)
In resources track for string
index.title=Some title
in every file.
That's all.
Wednesday, June 20, 2001, 1:37:53 PM, you wrote:
ONJH> Hi Oleg,
ONJH> I currently have the parameters to the ActionServlet
in web.xml as
ONJH> follows.
ONJH> <!-- Standard Action Servlet Configuration (with debugging)
-->
ONJH> <servlet>
ONJH> <servlet-name>action</servlet-name>
ONJH>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
ONJH> <init-param>
ONJH> <param-name>application</param-name>
ONJH> <param-value>ApplicationResources</param-value>
ONJH> </init-param>
ONJH> <init-param>
ONJH> <param-name>config</param-name>
ONJH> <param-value>/WEB-INF/struts-config.xml</param-value>
ONJH> </init-param>
ONJH> <init-param>
ONJH> <param-name>debug</param-name>
ONJH> <param-value>2</param-value>
ONJH> </init-param>
ONJH> <init-param>
ONJH> <param-name>detail</param-name>
ONJH> <param-value>2</param-value>
ONJH> </init-param>
ONJH> <init-param>
ONJH> <param-name>validate</param-name>
ONJH> <param-value>true</param-value>
ONJH> </init-param>
ONJH> <load-on-startup>2</load-on-startup>
ONJH> </servlet>
ONJH> This seems to be as you are saying to have it. I also
have the
ONJH> classpath set to find the directory where my
ApplicationResources.properties
ONJH> file is and it contains the 'index.title' and other string
property values.
ONJH> Unfortunately this doesn't seem to solve the problem. Any
other ideas?
ONJH> Thanks,
ONJH> John
ONJH> -----Original Message-----
ONJH> From: Oleg V Alexeev [SMTP:[EMAIL PROTECTED]]
ONJH> Sent: Wednesday, June 20, 2001 10:19 AM
ONJH> To: [EMAIL PROTECTED]
ONJH> Subject: Re: newbie question: Missing message
for key
ONJH> index.title error
ONJH> Hello John,
ONJH> You must place string for key index.title to the your
resources.
ONJH> Name for the resource bundle is in parameter
application in servlet
ONJH> description for ActionServlet in web.xml.
ONJH> Wednesday, June 20, 2001, 12:55:40 PM, you wrote:
ONJH> ONJH> Hi Everyone,
ONJH> ONJH> Could anyone please tell me why I am getting the
following
ONJH> error message
ONJH> ONJH> when trying to run the 'blank' example that
comes with Struts?
ONJH> ONJH> Cheers,
ONJH> ONJH> John
ONJH> ONJH> Error 500
ONJH> ONJH> An error has occured while processing
ONJH> ONJH> request:http://localhost:8080/blank/index.jsp
ONJH> ONJH> Message: Server caught unhandled exception from
servlet [jsp]:
ONJH> Missing
ONJH> ONJH> message for key index.title
ONJH> ONJH> Target Servlet: jsp
ONJH> ONJH> StackTrace:
ONJH> ONJH> Root Error-1: Missing message for key
index.title
ONJH> ONJH> javax.servlet.jsp.JspException: Missing message
for key
ONJH> index.title
ONJH> ONJH> java.lang.Throwable(java.lang.String)
ONJH> java.lang.Exception(java.lang.String)
ONJH> ONJH> javax.servlet.jsp.JspException(java.lang.String)
int
ONJH> ONJH>
org.apache.struts.taglib.bean.MessageTag.doStartTag() void
ONJH> ONJH>
ONJH>
blank._index_xjsp_jspsrc_910258570._jspService(javax.servlet.http.HttpServle
ONJH> ONJH> tRequest,
javax.servlet.http.HttpServletResponse) void
ONJH> ONJH>
ONJH>
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
ONJH> ONJH> Request, javax.servlet.http.HttpServletResponse)
void
ONJH> ONJH>
ONJH>
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH> ONJH> javax.servlet.ServletResponse) void
ONJH> ONJH>
ONJH>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
ONJH> ONJH> .http.HttpServletRequest,
ONJH> javax.servlet.http.HttpServletResponse, boolean)
ONJH> ONJH> void
ONJH> ONJH>
ONJH>
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ONJH> ONJH> ervletRequest,
javax.servlet.http.HttpServletResponse,
ONJH> java.lang.String,
ONJH> ONJH> java.lang.Throwable, boolean) void
ONJH> ONJH>
ONJH>
org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
ONJH> ONJH> equest, javax.servlet.http.HttpServletResponse)
void
ONJH> ONJH>
ONJH>
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH> ONJH> javax.servlet.ServletResponse) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ONJH> ONJH> ServletRequest, javax.servlet.ServletResponse)
void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ONJH> ONJH> ServletRequest, javax.servlet.ServletResponse)
void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engin
ONJH> ONJH> e.webapp.StrictLifecycleServlet,
javax.servlet.ServletRequest,
ONJH> ONJH> javax.servlet.ServletResponse) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.S
ONJH> ONJH> ervletRequest, javax.servlet.ServletResponse)
void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletR
ONJH> ONJH> equest, javax.servlet.ServletResponse,
ONJH> ONJH>
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
ONJH> void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.se
ONJH> ONJH> rvlet.engine.webapp.ServletInstanceReference,
ONJH> javax.servlet.ServletRequest,
ONJH> ONJH> javax.servlet.ServletResponse,
ONJH> ONJH>
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
ONJH> void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servle
ONJH> ONJH> t.ServletRequest, javax.servlet.ServletResponse,
ONJH> ONJH>
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
ONJH> void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(c
ONJH> ONJH> om.ibm.servlet.engine.webapp.WebAppRequest,
ONJH> ONJH> javax.servlet.http.HttpServletResponse, boolean)
void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet
ONJH> ONJH> .ServletRequest, javax.servlet.ServletResponse,
boolean) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.
ONJH> ONJH> ServletRequest, javax.servlet.ServletResponse)
void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obje
ONJH> ONJH> ct) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lan
ONJH> ONJH> g.Object) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(java.lan
ONJH> ONJH> g.Object) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.S
ONJH> ONJH> tring,
com.ibm.servlet.engine.srp.ISRPConnection) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.ser
ONJH> ONJH> vlet.engine.oselistener.api.IOSEConnection) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
ONJH> ONJH> java.net.Socket) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() void
ONJH> ONJH> java.lang.Thread.run()
ONJH> ONJH> Wrapped Error-2: Missing message for key
index.title
ONJH> ONJH> javax.servlet.ServletException: Missing message
for key
ONJH> index.title
ONJH> ONJH> java.lang.Throwable(java.lang.String)
ONJH> java.lang.Exception(java.lang.String)
ONJH> ONJH>
javax.servlet.ServletException(java.lang.Throwable) void
ONJH> ONJH>
ONJH>
org.apache.jasper.runtime.PageContextImpl.handlePageException(java.lang.Exce
ONJH> ONJH> ption) void
ONJH> ONJH>
ONJH>
blank._index_xjsp_jspsrc_910258570._jspService(javax.servlet.http.HttpServle
ONJH> ONJH> tRequest,
javax.servlet.http.HttpServletResponse) void
ONJH> ONJH>
ONJH>
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServlet
ONJH> ONJH> Request, javax.servlet.http.HttpServletResponse)
void
ONJH> ONJH>
ONJH>
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH> ONJH> javax.servlet.ServletResponse) void
ONJH> ONJH>
ONJH>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
ONJH> ONJH> .http.HttpServletRequest,
ONJH> javax.servlet.http.HttpServletResponse, boolean)
ONJH> ONJH> void
ONJH> ONJH>
ONJH>
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ONJH> ONJH> ervletRequest,
javax.servlet.http.HttpServletResponse,
ONJH> java.lang.String,
ONJH> ONJH> java.lang.Throwable, boolean) void
ONJH> ONJH>
ONJH>
org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
ONJH> ONJH> equest, javax.servlet.http.HttpServletResponse)
void
ONJH> ONJH>
ONJH>
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
ONJH> ONJH> javax.servlet.ServletResponse) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ONJH> ONJH> ServletRequest, javax.servlet.ServletResponse)
void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ONJH> ONJH> ServletRequest, javax.servlet.ServletResponse)
void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engin
ONJH> ONJH> e.webapp.StrictLifecycleServlet,
javax.servlet.ServletRequest,
ONJH> ONJH> javax.servlet.ServletResponse) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.S
ONJH> ONJH> ervletRequest, javax.servlet.ServletResponse)
void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletR
ONJH> ONJH> equest, javax.servlet.ServletResponse,
ONJH> ONJH>
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
ONJH> void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.se
ONJH> ONJH> rvlet.engine.webapp.ServletInstanceReference,
ONJH> javax.servlet.ServletRequest,
ONJH> ONJH> javax.servlet.ServletResponse,
ONJH> ONJH>
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
ONJH> void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servle
ONJH> ONJH> t.ServletRequest, javax.servlet.ServletResponse,
ONJH> ONJH>
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
ONJH> void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(c
ONJH> ONJH> om.ibm.servlet.engine.webapp.WebAppRequest,
ONJH> ONJH> javax.servlet.http.HttpServletResponse, boolean)
void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet
ONJH> ONJH> .ServletRequest, javax.servlet.ServletResponse,
boolean) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.
ONJH> ONJH> ServletRequest, javax.servlet.ServletResponse)
void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obje
ONJH> ONJH> ct) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lan
ONJH> ONJH> g.Object) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(java.lan
ONJH> ONJH> g.Object) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.S
ONJH> ONJH> tring,
com.ibm.servlet.engine.srp.ISRPConnection) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.ser
ONJH> ONJH> vlet.engine.oselistener.api.IOSEConnection) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
ONJH> ONJH> java.net.Socket) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() void
ONJH> ONJH> java.lang.Thread.run()
ONJH> ONJH> Wrapped Error-3: Server caught unhandled
exception from
ONJH> servlet [jsp]:
ONJH> ONJH> Missing message for key index.title
ONJH> ONJH>
com.ibm.servlet.engine.webapp.UncaughtServletException: Server
ONJH> caught
ONJH> ONJH> unhandled exception from servlet [jsp]: Missing
message for
ONJH> key index.title
ONJH> ONJH> java.lang.Throwable(java.lang.String)
ONJH> java.lang.Exception(java.lang.String)
ONJH> ONJH> javax.servlet.ServletException(java.lang.String,
ONJH> java.lang.Throwable)
ONJH> ONJH>
ONJH>
com.ibm.websphere.servlet.error.ServletErrorReport(java.lang.String,
ONJH> ONJH> java.lang.Throwable)
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.WebAppErrorReport(java.lang.String,
ONJH> ONJH> java.lang.Throwable)
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.UncaughtServletException(java.lang.String,
ONJH> ONJH> java.lang.Throwable) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(c
ONJH> ONJH> om.ibm.servlet.engine.webapp.WebAppRequest,
ONJH> ONJH> javax.servlet.http.HttpServletResponse, boolean)
void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet
ONJH> ONJH> .ServletRequest, javax.servlet.ServletResponse,
boolean) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.
ONJH> ONJH> ServletRequest, javax.servlet.ServletResponse)
void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Obje
ONJH> ONJH> ct) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lan
ONJH> ONJH> g.Object) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(java.lan
ONJH> ONJH> g.Object) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.S
ONJH> ONJH> tring,
com.ibm.servlet.engine.srp.ISRPConnection) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.ser
ONJH> ONJH> vlet.engine.oselistener.api.IOSEConnection) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(
ONJH> ONJH> java.net.Socket) void
ONJH> ONJH>
ONJH>
com.ibm.servlet.engine.http_transport.HttpTransportHandler.run() void
ONJH> ONJH> java.lang.Thread.run()
ONJH> --
ONJH> Best regards,
ONJH> Oleg
mailto:[EMAIL PROTECTED]
--
Best regards,
Oleg mailto:[EMAIL PROTECTED]