Return-Path: Delivered-To: apmail-jakarta-struts-dev-archive@apache.org Received: (qmail 65833 invoked from network); 28 Feb 2002 20:54:12 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 28 Feb 2002 20:54:12 -0000 Received: (qmail 18508 invoked by uid 97); 28 Feb 2002 20:54:11 -0000 Delivered-To: qmlist-jakarta-archive-struts-dev@jakarta.apache.org Received: (qmail 18435 invoked by uid 97); 28 Feb 2002 20:54:10 -0000 Mailing-List: contact struts-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list struts-dev@jakarta.apache.org Received: (qmail 18399 invoked from network); 28 Feb 2002 20:54:10 -0000 Date: Thu, 28 Feb 2002 15:53:54 -0500 From: AbmyersA@netscape.net (Andrew Myers) To: struts-dev@jakarta.apache.org ("Struts Developers List") Subject: RE: RE: Possible bug in multi app code - Can Ted or Craig respond? Message-ID: <4BAAC38B.5F4F8E19.006B72CC@netscape.net> X-Mailer: Atlas Mailer 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hmm ok I'll have to have another look. I couldn't get the messages to work for my sub app until I made that change as it still appeared to be looking in the messages for my default app and saying it couldn't find the message I was after. (this was using Tomcat 4.0.1 and JDK 1.3.1 on Win2000). Andrew. Chuck Cavaness wrote: >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: >>For additional commands, e-mail: > > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: > > -- __________________________________________________________________ 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: For additional commands, e-mail: