I would try this: <bean:define id="actionMessages" name="<%= org.apache.struts.Globals.GLOBAL_ERROR%>" type="org.apache.struts.action.ActionMessages"/>
<%= actionMessages.getMessage(...) %> I dont know if it works, since I have no way now to test it... You have to find somewhere value of GLOBAL_ERROR and then it is easy, i think. -- Honza Manuel Wissmann wrote: > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]