You can do something like the following:

        in ApplicationResources.properties

                errors.dynamic.message = {0}

        in your Action

                errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("errors.dynamic.message", myDynamicMessage);

HTH,

Jerry

> -----Original Message-----
> From: Ravi Kora [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 10:42 AM
> To: 'Struts Users Mailing List'
> Subject: How to pass paramaeters to display dynamic text using html:
> errors tag?
> 
> 
> Hi,
> I am a newbie to struts. Right now, I am able to display server side
> errors using the html:errors tag. But, I want to extend the
> functionality of this to display some dynamic text. 
> I want to pass a parameter to the tag in Application.properties file
> which adds the parameter to the text dynamically and adds the 
> object to
> ActionErrors class. I know this feature is supported in 
> struts but I am
> not able to find any source about this. Can someone help me with this?
> 
> 
> Thanks & Regards,
> Ravi Kora
> 337-739-3434(M) 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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

Reply via email to