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 2004/03/01 14:17:36 UTC

DO NOT REPLY [Bug 27332] New: - The bundle attr do not have subapp resolution.

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=27332>.
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=27332

The bundle attr do not have subapp resolution.

           Summary: The bundle attr do not have subapp resolution.
           Product: Struts
           Version: 1.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: richard.li@cherubim.com.hk


Using multiple resource bundles in multiple subapps.

while defining resource bundles in struts-config will result in setting up the
bundles in the servlet context using the following naming convention:

  <bundle key>/<subapp name>

However, when I tried to use a tag in a jsp in a subapp:

   <bean:message bundle="home" key="hello.world"/>

It will generate error saying that no bundle can be found.  I dig into the
source code and found that when the bundle attribute is used, it will search the
servlet context for 

   <bundle key>

but not

   <bundle key>/<subapp name>

I think I can do a patch on this problem and submit to you.

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