struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Flores <>
Subject Re: Making strings in 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
> I'm considering writing a class that runs at startup & generates a javascript file
that contains all of the strings from in javascript class.
> Is there a better approach?
> - mps


View raw message