Why not just use an EL expression? For example if you have a variable "lang" that contains the language
string, you could simply write ${translation[lang].name}.
If your web application uses
Servlet version 2.4, you can just use the EL expression anywhere in your
JSP. Otherwise, you have to enclose it in a c:out tag. You can determine which version of the Servlet spec you're using by examining the DTD reference in your web.xml file.