I don't think this change is neccessary. The reason is that I believe the
message bundle for each sub-app is placed into the servlet context during
the initApplicationMessageResources in ActionServlet. The message method in
RequestUtils will check the pageContext first and then go to the
application scope to get the bundle. The multi-applications seem to be
working properly after the change that you mentioned and that I put a bug
report in for.
Chuck
At 09:03 AM 2/28/2002 -0500, you wrote:
>To get the message resources working in the sub application I also had a
>make a change in RequestUtils.message(PageContext, String, String, String,
>Object []):
>
>
>if (resources == null) {
> resources = (MessageResources)
> pageContext.getAttribute(bundle,
> PageContext.REQUEST_SCOPE); // I changed this from
> // PageContext.APPLICATION_SCOPE
>}
>
>since RequestUtils.selectApplication(HttpServletRequest, ServletContext)
>sets this is request scope as follows:
>
>if (resources != null) {
> request.setAttribute(Action.MESSAGES_KEY, resources);
>
>Is this also a bug or am I missing the point entirely?
>
>Andrew.
>--
>
>
>
>
>__________________________________________________________________
>Your favorite stores, helpful shopping tools and great gift ideas.
>Experience the convenience of buying online with Shop@Netscape!
>http://shopnow.netscape.com/
>
>Get your own FREE, personal Netscape Mail account today at
>http://webmail.netscape.com/
>
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>