hi mahesh,

i am aware of this problem but we can't call it a bug. May be a shortcoming
that might be solved in the coming release.

if you wish to change on your own. You need to look into
commons-validator.jar.

HTH
-navjot

----- Original Message -----
From: "Bhagia, Mahesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 8:28 PM
Subject: message resouce bundle in validator


|
| Hello Navjot,
|
| This message(from struts-user-forum) is regarding specifying message
| resource bundle in validator.xml
|
| Struts 1.1-b2
|
| I have multiple resource files for my application defined in
| struts-config.xml:
| <message-resources parameter="com.myco.myapp.ApplicationResources"
| null="false"/>
| <message-resources key="myapp.module"
| parameter="com.myco.myapp.module.RmaResources" null="false"/>
|
| Then in my JSPs I reference:
| <bean:message key="mykey1" />
| <bean:message bundle="myapp.module" key="mykey2" />
|
| This all works fine.
|
| I am now trying to add in validation on the form. Here is my
validation.xml:
| <field property="partNumber" depends="required">
| <arg0 key="label.partNumber" />
| </field>
| <field property="faultDescription" depends="required">
| <arg0 bundle="myapp.module" key="faultDescription.title" />
| </field>
|
| The "partNumber" arg0 is in the "default" ApplicationResources.properties
| file and displays correctly. However the "faultDescription" error message
is
| not correct it returns:
| ???en.faultDescription.title??? is required.
|
| By looking at the validation_1_1.dtd I can see that the arg0 attribute
takes
| only three parameters:
| name
| key
| resource
|
| none of which is bundle. Can the validator handle multiple resources? Is
| this a bug?
|
|
| Do you know how / where,  we need to change framework for this to work?,
|
| Thanks
| Mahesh Bhagia
|
|
|


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

Reply via email to