Hi,
Iam using Struts1.0 ActionErrors and ActionError object to store/display
errors which is reading the errors from ApplicationResources file. Iam
unable to display the error for dynamically generated values. Any idea
please.
My Code:
----------------
String txtLoginId = "Manager" ; // txtLoginId value comes dynamically as
entered by the user
ActionErrors errors = new ActionErrors();
errors.add(Application.GLOBAL_ERRORS, new ActionError("
err.app.login.invalid")); // This works fine. The proper error which is
given in resources file will be shown in the html page.
String errMsg = txtLoginId +" , login id does not exits.";
errors.add(Application.GLOBAL_ERRORS, new ActionError(errMsg)); // This
also works fine, but how to show this errMsg value in the html file by
<html:errors />
Thanks in advance.
Regards
Khan