I am bit confused with action errors; see AcrionErrors generally prepared by validate method,and in validate method i don't want to put any database check-up,for a case if user logs in to system and validate method passes all check like required,minlength etc. but for existance in to data base i have to check in the action and if user not found then i have to prepare actionerrors. so the question is how can i prepare actionerrors in action ? i am using 1.2.9 version (with netbeans 5.5) and if some one is thinking that solution is as bellow
ActionErrors ae = new ActionErrors( ); ae.add("userId", new ActionError("error.invalid.login")); request.setAttribute(Action.ERROR_KEY, ae);
it is not working , i think Action.ERROR_KEY is not present there. can any one help me ?
Joined: Jan 08, 2005
ya i myself found that key its Globals.ERROR_KEY.now working fine...