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

2004-03-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27332

The bundle attr do not have subapp resolution.

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2004-03-26 15:20 ---
*** Bug 27943 has been marked as a duplicate of this bug. ***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2004-03-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27332

The bundle attr do not have subapp resolution.





--- Additional Comments From [EMAIL PROTECTED]  2004-03-24 14:20 ---
This is a quick fix.  Just modify the method selectModule(String,
HttpServletRequest, ServletContext) in org.apache.struts.util.RequestUtils to
the following dump can fix this problem.  However the keys used to store message
resources is too general and may crashed with other attribute names, I suggest
to modify all the MessageResources keys to some more unique representation for a
more complete fix.





public static void selectModule(
String prefix,
HttpServletRequest request,
ServletContext context) {

// Expose the resources for this module
ModuleConfig config = (ModuleConfig)
context.getAttribute(Globals.MODULE_KEY + prefix);
if (config != null) {
request.setAttribute(Globals.MODULE_KEY, config);
} else {
request.removeAttribute(Globals.MODULE_KEY);
}

// Expose all message resources for this module
/*MessageResources resources =
(MessageResources) context.getAttribute(Globals.MESSAGES_KEY + prefix);
if (resources != null) {
request.setAttribute(Globals.MESSAGES_KEY, resources);
} else {
request.removeAttribute(Globals.MESSAGES_KEY);
}*/
MessageResourcesConfig[] mrConfig = config.findMessageResourcesConfigs();
for(int i = 0; i < mrConfig.length; i++)
{
  String key = mrConfig[i].getKey();
  MessageResources resources =
(MessageResources) context.getAttribute(key + prefix);
if (resources != null) {
request.setAttribute(key, resources);
} else {
request.removeAttribute(key);
}
  }

}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2004-03-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27332

The bundle attr do not have subapp resolution.





--- Additional Comments From [EMAIL PROTECTED]  2004-03-24 12:02 ---
I have already made a temp patch, but not a good one.  Give me a week or so.  I
will have a complete patch.  But, how can I upload the patch?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2004-03-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27332

The bundle attr do not have subapp resolution.





--- Additional Comments From [EMAIL PROTECTED]  2004-03-24 11:10 ---
Are you still interested in working on a patch, Richard?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2004-03-20 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27332

The bundle attr do not have subapp resolution.

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2004-03-20 22:13 ---
*** Bug 27632 has been marked as a duplicate of this bug. ***

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2004-03-20 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27332

The bundle attr do not have subapp resolution.





--- Additional Comments From [EMAIL PROTECTED]  2004-03-20 22:11 ---
If you are saying an alternate bundle "home" is defined in the configuration 
for the module, but is not found within that module, then yes, we'd love to 
see a patch.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]