struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: ActionMessages not displayed in the UI
Date Wed, 12 Oct 2005 16:41:02 GMT wrote:

> Errors are displayed as I expect through my validation.xml but no 
> error is displayed when it goes through my action class. Any ideas why?

    protected ActionForward errorToInput(final HttpServletRequest 
request_, final ActionMapping mapping_, final String errorKey_, final 
String msg_) {
        ActionMessages msgs = new ActionMessages();
        msgs.add("action-errors", new ActionMessage(errorKey_, msg_));
        saveMessages(request_, msgs);
        return mapping_.getInputForward();

<logic:messagesPresent message="true" property="action-errors">
  <div class="errorbox">
    <html:messages message="true" id="err" name="action-errors">
      <bean:write name="err"/>

Does this help?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message