Actually, another alternative would be the ability to change which message
keys are being used, instead of changing the resources themselves.  You can
presently (at least in the nightly build) change the "header" and "footer"
keys for the "messages" tag, but not the prefix or suffix, and none of those
for the "errors" tag.  I recently submitted an enhancement request to
address this for both tags.  I was hoping to get more feedback on that in
the next day or so.

> -----Original Message-----
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 15, 2002 7:58 AM
> To: Struts Users Mailing List
> Subject: RE: How to change errors.header and errros.footer
> Dynamically???????
> 
> Sorry, you won't be able to do this with the correct API.
> The messages are cached in both PropertyMessageResources and its super
> (MessageResources).
> 
> So, you would need something like DBMessageResources, which is a
> MessageResources implementation I developed to support 
> messages in a RDBMS.
> I'm almost finished with the admin tool that will let you change (at
> runtime) the messages.
> 
> Using this extension requires having the messages in a 
> database, so this is
> not for everyone.
> 
> 
> 
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org
> 
> 
> 
> 
> > -----Original Message-----
> > From: samit.goyal [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 15, 2002 7:46 AM
> > To: Struts Users Mailing List
> > Subject: How to change errors.header and errros.footer
> > Dynamically???????
> >
> >
> > Hi all,
> >
> > Can any one of you pls help me in dynamically modifying the 
> errors.header
> > and errors.footer from my action class???
> >
> > Thanks in advance!!
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

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

Reply via email to