You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Greg Hess <gh...@wrappedapps.com> on 2002/10/24 15:49:30 UTC
RE: different resource bundles & validation framework
The problem you are reporting is logged as bug
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10868 in buzilla and I see
there are two patches posted.
I am not sure how the bug process works and how these posted patches should
be dealt with?
Greg
-----Original Message-----
From: Rainer Mueller [mailto:rmueller@inventage.com]
Sent: Thursday, October 24, 2002 10:18 AM
To: struts-user@jakarta.apache.org
Subject: different resource bundles & validation framework
we have different resource bundles registered in struts-config.xml file
using
the latest nightly build of struts
<message-resources key="common" parameter="resources.common" />
<message-resources key="error" parameter="resources.error" />
I am able to access the resources via
<bean:message key="errors.header" bundle="error"/>
<bean:message key="common.username" bundle="common"/>
The problem is only with the validator framework. It seems that there is no
way
to specify the bundle name and a lookup is hardcoded to Action.MESSAGES_KEY.
Returned error message is 'Cannot find message resources under key
org.apache.struts.action.MESSAGE'
The key is specified in validation.xml file e.g. <arg0
key="common.username"/>
without a bundle attribute :-(
Is there a way to access/specify the proper bundle? Shouldn't the
html:javascript tag library provide a bundle attribute as bean:message does?
Thanks & Best regards,
Rainer
--
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: different resource bundles & validation framework
Posted by Rainer Mueller <rm...@inventage.com>.
Greg, thanks for your reply! Who has an idea when bug
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10868 will be part of the
nightly build?
I checked jakarta-struts-src-20021023 which is still the buggy version!
Thanks,
Rainer
> The problem you are reporting is logged as bug
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10868 in buzilla and I see
> there are two patches posted.
>
> I am not sure how the bug process works and how these posted patches should
> be dealt with?
>
> Greg
>
> -----Original Message-----
> From: Rainer Mueller [mailto:rmueller@inventage.com]
> Sent: Thursday, October 24, 2002 10:18 AM
> To: struts-user@jakarta.apache.org
> Subject: different resource bundles & validation framework
>
>
> we have different resource bundles registered in struts-config.xml file
> using
> the latest nightly build of struts
> <message-resources key="common" parameter="resources.common" />
> <message-resources key="error" parameter="resources.error" />
>
> I am able to access the resources via
> <bean:message key="errors.header" bundle="error"/>
> <bean:message key="common.username" bundle="common"/>
>
> The problem is only with the validator framework. It seems that there is no
> way
> to specify the bundle name and a lookup is hardcoded to Action.MESSAGES_KEY.
> Returned error message is 'Cannot find message resources under key
> org.apache.struts.action.MESSAGE'
>
> The key is specified in validation.xml file e.g. <arg0
> key="common.username"/>
> without a bundle attribute :-(
>
> Is there a way to access/specify the proper bundle? Shouldn't the
> html:javascript tag library provide a bundle attribute as bean:message does?
>
>
> Thanks & Best regards,
> Rainer
> --
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>