You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/06/11 00:31:35 UTC

DO NOT REPLY [Bug 20664] New: - Servlets derived from ActionServlet, share default ModuleConfig

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20664>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20664

Servlets derived from ActionServlet, share default ModuleConfig

           Summary: Servlets derived from ActionServlet, share default
                    ModuleConfig
           Product: Struts
           Version: 1.1 Beta 3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Controller
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: pav.lin@centrum.cz


If I declare multiple ActionServlet descendants in my webapp web.xml,
then I always get the struts-config.xml configuration for the one, which was 
loaded first. I found that ModuleConfig is fetched from  ServletContext under 
the key Globals.MODULE_KEY. Because ActionServlet instance is shared -> default 
ModuleConfig is shared.
 I guess the same is true for modules, which belong to different servlets, but 
have the same name.

I may be wrong and this behaviour could be the intention, but it brakes my 
project. 

Regards,

Pavlin Zachariev

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org