struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bOOyah <>
Subject Re: ActionErrors in my JSP: how can I rewrite this RT snippet as EL?
Date Fri, 23 Apr 2004 11:49:30 GMT
Niall Pemberton wrote:

> It should be 
>     <logic:present name="org.apache.struts.action.ERROR">
>       <html:errors property="org.apache.struts.action.GLOBAL_MESSAGE"/>
>     </logic:present>
> .. or even
>     <logic:messagesPresent>
>       <html:errors  property="org.apache.struts.action.GLOBAL_MESSAGE"/>
>     </logic:messagesPresent>

Sorry for the delay in replying wife MADE ME down tools for a 

Yes, indeed both your suggestions work perfectly.  I'm using the 2nd 
one.  Am I right then in guessing that

     <html:messages property="org.apache.struts.action.GLOBAL_MESSAGE"/>

would display all messages (errors or otherwise)?  Is it now that simple?

What threw me originally is that 'org.apache.struts.action.ERROR' no 
longer exists in the online Struts javadocs.  So I got embroiled in 
following the path of deprecation, and I couldn't get the current 
recommendations to work :-(

Thanks a mill for your help.


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

View raw message