Hi,
I have no idea how to localize errors produced by the system itselfe.
- There is no problem for me to localize the Struts-Application with
localized property files (labels, buttons, validation errors of forms
etc.).
But now an example where I don't know how to do:
A login action checks if the connection to the backend server is ok.
If not then I populate a special special error-bean in the session with
an error message to be shown:
<bean:write name="asimerror" property="error"/>
That is no problem. But how can I localize that System-Error-Message???
I thougt about using a error-key (like:
login.error.label.noserverconnection) within a JSP element like:
<bean:message key="login.error.label.noserverconnection"/>
But I don't know how to put the login.error.label.noserverconnection"
dynamically in that line of code ...
TIA for your ideas!
Hartmut