You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/11/07 14:17:29 UTC

BugRat Report #353 has been filed.

Bug report #353 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/353>

REPORT #353 Details.

Project: Struts
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: serious
Confidence: public
Environment: 
   Release: 0.5
   JVM Release: 1.3
   Operating System: Windows NT
   OS Release: 4
   Platform: Intel

Synopsis: 
ActionServlet scoping bug

Description:
you can tell ActionServlet where the application resources are by adding a parameter called application in the web.xml document.

It parses this ok and loads the resource but sets the attribute on the servlet context object.  

Later when the ErrorTag comes to use the message, it cannot find the resource as it tries to get it from pageContext.

If I modify the ErrorTag source code so it gets the  Action.MESSAGES_KEY resource property from the servlet context (inside doStartTag) instead then it works.