I agree.

However, if you are so inclined, the monster hack below should help:

ApplicationResources.properties

anything.goes={0}

In your Action/ActionForm:

new ActionError("anything.goes", "The literal text")

Sri

-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 03, 2003 10:30 AM
To: [EMAIL PROTECTED]
Subject: Re: When i18n isn't Needed


One of the original reasons Struts was created was to handle I18N.  That's 
why it's tied into the framework so closely.  Even if you don't need to 
support multiple languages you should still use a resource file to store 
messages to make changes *much* easier.

David



>From: "Dave Ford" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: When i18n isn't Needed
>Date: Sun, 2 Feb 2003 23:57:17 -0800
>
>It seems to me that for apps that do not need i18n, i18n constructs
>shouldn't be forced upon the user. Is there a way to return an error 
>message from ActionForm.validate(..) without dealing with a resource file?
>
>
>Dave Ford
>Smart Soft - The Developer Training Company http://www.smart-soft.com


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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