** I’m moving this back onto the struts-user list in case others might find
it useful **

How familiar are you with MessageResources?

See, the framework stores the MessageResources implementation objects in the
request scope during the request (prior to calling your action class).

It is set in the request under the key “org.apache.struts.action.MESSAGE”
(or some variation depending on bundleKey and/or subapp, which you can use
within your action, or for ActionErrors, or in the jsp page (as some of the
taglibs do).  Are you using subapps?

The error you are seeing is because that object is not there and *THAT’S*
usually caused by a mis-configured app or (less frequently) a missing file.

Double check what you put in the struts-config.xml for <message-resources>.

Also, refer to the struts-example to see how that app does it.

Good Luck!!


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org


-----Original Message-----
From: Azita_m [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 9:39 PM
To: James Mitchell
Subject: RE: HTTP Status 500 - What does the following mean?

>
> Bill receive this error, same as me;
>
> Description:
>
> The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> Exception:
>
> org.apache.jasper.JasperException: Cannot find message resources under key
> org.apache.struts.action.MESSAGE
>       at
> org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
>       at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
>       at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

<snip/>



--------- Mensagem Original --------
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Azita Musa" <[EMAIL PROTECTED]>
Subject: RE: HTTP Status 500 - What does the following mean?
Date: 15/10/02 14:55


500 is an internal server error. What error did Bill get?

James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org




> -----Original Message-----
> From: Azita Musa [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 15, 2002 5:02 AM
> To: [EMAIL PROTECTED]
> Subject: RE: HTTP Status 500 - What does the following mean?
>
>
> dear James
> I recieve the same error as Bill recieve. I could'nt solve this problem.
> I have try search for ApplicationResources.properties file but there
> are'nt any.
> I'm using Tomcat4.1.10, JDK1.4 in HP-UX 9000
>
> Appreciate if you can help.....
>
>




--
Azita Musa
CIBD-SD
Telekom Kelana Jaya


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to