struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Flores <aflo...@umd.edu>
Subject Re: Making strings in ApplicationResources.properties available to Javascript
Date Mon, 15 Sep 2008 17:59:17 GMT
Have you consider using DWR for this? I mean, you could always export a 
Spring bean (Abstract Message Resource) to your javascript calls. Only 
an idea.


Michael Pelz Sherman wrote:
> I'd like to stop putting hard-coded strings (error messages and such) in our javascript
code.
> 
> I'm considering writing a class that runs at startup & generates a javascript file
that contains all of the strings from ApplicationResources.properties in javascript class.
> 
> Is there a better approach?
> 
> - mps

-- 
--
Alberto
http://www.linkedin.com/in/aflores


Mime
View raw message