Hi Everbody!

I've got the following problem:

In my MitarbeiterAction.java   I've got the following Code:

...
public ActionForward execute(ActionMapping mapping,
ActionForm form, HttpServletRequest req,
HttpServletResponse res) throws Exception
{
ActionMessages messages = new ActionMessages();
MitarbeiterForm mf = (MitarbeiterForm)form;
Mitarbeiter mitarbeiter = mf.getMitarbeiter();
mitarbeiter.anlegen();


// checks if Mitarbeiter exists in the db
if( !mitarbeiter.checkMitarbeiterExists(mitarbeiter.getStammNr()) )
{
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.mitarbeiter.anlegen"));
saveErrors(req, errors);
}
else
{
messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("mitarbeiter.angelegt"));
saveMessages(req, messages);
}
return mapping.findForward("MitarbeiterCreated");
}
...


My Question is now, How can I access the ActionMessages in the jsp to which the Action is forwarded???

THX
Manu


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to