This has to do with your validation xml.
You should have an arg0 and an arg1 that represent {0} and {1} in your
message respectively.
Check how you have it defined.
-Tim

-----Original Message-----
From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2003 4:11 PM
To: Struts Users Mailing List
Subject: RE: Application Resources & Error messages


Arrrrgh!
I just didn't have it in the right location.  It was in the package
structure alright, just in the war root, not WEB-INF/classes.

Now, however, I'm getting this:
User name can not be less than null characters.

Why doesn't it know how many characters?

-----Original Message-----
From: Fenderbosch, Eric 
Sent: Tuesday, September 30, 2003 15:56
To: [EMAIL PROTECTED]
Subject: Application Resources & Error messages


I'm confused on how error messages work.  I've created a properties file
TrackMessageResource.properties in the proper package structure and
specified it in my struts-config like this:
<message-resources
  null="false"
  parameter="com.*****.cc.track.struts.TrackMessageResources"/>

I'm using the validator plugin and it is returning error messages like:
???en_US.errors.minlength???

In TrackMessageResource.properties I have:
errors.minlength={0} can not be less than {1} characters.

This application is not going to be I18N so I only want/need one message
resource file.  I don't understand why validator can't find the correct
error message.  Any help would be appreciated.

Thanks.

Eric

---------------------------------------------------------------------
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