You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by cliff <cl...@reinfo.com.hk> on 2004/07/07 12:50:13 UTC
multi-porterties problem
Hi,
I have encountered a problem in applying multi-properties.
Multi-properties is used in my company's system. Bundle is set. I can use the message in xxx.jsp but not validation form thought I have set bundle.
http://jakarta.apache.org/commons/dtds/validator_1_1.dtd is used in validation.xml
Thanks.
Best wishes,
Cliff
Re: multi-porterties problem
Posted by cliff612 <cl...@reinfo.com.hk>.
Thank you Susan
I have register two properties in my config.xml. I want to use this
two properties in my vaidation.xml and genterate the checking
javascript in jsp.
Key is set in config.xml and bundle is set in validation.xml.
But it cannot return the message what I want.
Could anyone can tell me more ??
Thanks a lot.
--- In struts@yahoogroups.com, Susan Bradeen <Su...@s...> wrote:
> Cliff,
> If I understand your question correctly, you would like Validator
to use
> messages defined in a non-default application resource properties
file? I
> am not 100% sure, but I think that Validator only looks for error
messages
> defined in the default application resources file (the one without
the
> bundle value specified). You might want to check out the Struts
docs on
> line for more info, or just do some experimentation. Hopefully
someone
> else will speak up if I am wrong here.
>
> Susan Bradeen
>
> "cliff" <cl...@r...> wrote on 07/07/2004 06:50:13 AM:
>
> > Hi,
> >
> > I have encountered a problem in applying multi-properties.
> >
> > Multi-properties is used in my company's system. Bundle is set.
I
> > can use the message in xxx.jsp but not validation form thought I
> > have set bundle.
> >
> > http://jakarta.apache.org/commons/dtds/validator_1_1.dtd is used
in
> > validation.xml
> >
> > Thanks.
> >
> > Best wishes,
> > Cliff
>
>
> -------------------------------------------------------------------
--
> To unsubscribe, e-mail: user-unsubscribe@s...
> For additional commands, e-mail: user-help@s...
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: multi-porterties problem
Posted by Susan Bradeen <Su...@softlanding.com>.
Cliff,
If I understand your question correctly, you would like Validator to use
messages defined in a non-default application resource properties file? I
am not 100% sure, but I think that Validator only looks for error messages
defined in the default application resources file (the one without the
bundle value specified). You might want to check out the Struts docs on
line for more info, or just do some experimentation. Hopefully someone
else will speak up if I am wrong here.
Susan Bradeen
"cliff" <cl...@reinfo.com.hk> wrote on 07/07/2004 06:50:13 AM:
> Hi,
>
> I have encountered a problem in applying multi-properties.
>
> Multi-properties is used in my company's system. Bundle is set. I
> can use the message in xxx.jsp but not validation form thought I
> have set bundle.
>
> http://jakarta.apache.org/commons/dtds/validator_1_1.dtd is used in
> validation.xml
>
> Thanks.
>
> Best wishes,
> Cliff
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org