Hi

You are right- In that dtd there is a reference to bundle. I'll have a
look at it.

Hermod

-----Opprinnelig melding-----
Fra: Otto, Frank [mailto:[EMAIL PROTECTED]
Sendt: 7. april 2004 10:35
Til: 'Struts Users Mailing List'
Emne: AW: AW: AW: SV: validation with struts 1.2


Please take look at this url:

http://jakarta.apache.org/commons/dtds/validator_1_1.dtd


Regards,

Frank

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. April 2004 10:31
An: [EMAIL PROTECTED]
Betreff: SV: AW: AW: SV: validation with struts 1.2


Hi

NO, they don't ! Are you sure you are looking at validation_1.1.dtd ?
Mine is from last nights build

Hermod

-----Opprinnelig melding-----
Fra: Otto, Frank [mailto:[EMAIL PROTECTED]
Sendt: 7. april 2004 10:18
Til: 'Struts Users Mailing List'
Emne: AW: AW: AW: SV: validation with struts 1.2


The field has no bundle attribute, but the msg and arg node.

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. April 2004 10:15
An: [EMAIL PROTECTED]
Betreff: SV: AW: AW: SV: validation with struts 1.2


Hi

Sorry typo ! In the validation_1.1.dtd there is no bundle attribute for
the field! Where did you get this from ?

Hermod

-----Opprinnelig melding-----
Fra: Otto, Frank [mailto:[EMAIL PROTECTED]
Sendt: 7. april 2004 10:05
Til: 'Struts Users Mailing List'
Emne: AW: AW: AW: SV: validation with struts 1.2


Hi,

the resource attribute is true or false. the bundle attribute is to use
for alternate resource bundle.

bundle     The resource bundle name that the key should be resolved in.

resource    If set to "false", the key is taken to be a literal
                  value rather than a bundle key.
                  [true]

Regards,

Frank

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. April 2004 09:53
An: [EMAIL PROTECTED]
Betreff: SV: AW: AW: SV: validation with struts 1.2


Hi

the bundle attribute should be either "true" or "false" . It is not
meant to specify which "Resource" bundle to use.

If you looked in the dtd :

              resource    If set to "false", the key is taken to be a
literal
                          value rather than a bundle key.

Hermod

-----Opprinnelig melding-----
Fra: Adam Hardy [mailto:[EMAIL PROTECTED]
Sendt: 7. april 2004 09:46
Til: Struts Users Mailing List
Emne: Re: AW: AW: SV: validation with struts 1.2


I just updated my DTD declaration to validator-1.1 and now it is giving 
me some SAXParseException

Attribute "bundle" must be declared for element type "arg0"

This is new to me and I'll have to check it out. I now have a test 
validate.xml with only one form, one field and one arg, and that has the

bundle attribute on it. Perhaps it wants me to specify what that bundle 
is somehow.

Frank, what error do you get? Any exceptions?

Adam

On 04/07/2004 08:10 AM Otto, Frank wrote:
> Hi Adam,
> 
> I use the validation.xml in this way:
> 
> <!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD
Commons Validator Rules Configuration 1.1//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>
> 
> <form name="loginForm">
>       <field property="loginname" depends="required">
>               <arg0 key="label.loginname" bundle="login"/>
>               <msg name="required" key="error.required"
bundle="login"/>
>       </field>
>       <field property="password" depends="required">
>               <arg0 key="label.password" bundle="login"/>
>               <msg name="required" key="error.required"
bundle="login"/>
>       </field>
> </form>
> 
> 
> Regards,
> 
> Frank
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian


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


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *


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

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

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

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

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

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

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

Reply via email to