struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Martín Cuervo <>
Subject Getting keys
Date Tue, 28 Dec 2004 20:30:33 GMT
Hello to all,

I've start working with jasperReports with struts, and i want to externalize
the labels to use in multilanguage environment.

I use a file (with the tag message-resources
in struts-config.xml) to the jsp labels without problems, but in my report
action i've to white java source like this:

MessageResources resources = getResources(request);
 * params 4 jasperReports
Map params = new HashMap(); 
params.put("L_NAME", 	resources.getMessage(""));

And so on

I want to read the keys of the resources and match then with the prefix
"" to automate the process and don't have to do the same
thind twice (in action code & in

Thanx for all!!

PD: I use struts 1.1

Jorge Martin Cuervo
+34 660 026 384

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message