Craig McLanahan wrote something about this recently. I may be wrong since I haven't done this, but you may need '' quotes around the property since there are '.'s in it.
sandeep -----Original Message----- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 8:52 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: ActionErrors in my JSP: how can I rewrite this RT snippet as EL? 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> ----- Original Message ----- From: "bOOyah" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 22, 2004 1:31 AM Subject: ActionErrors in my JSP: how can I rewrite this RT snippet as EL? > Hi > > I'm displaying validate() ActionErrors in my JSP using the RT > html:errors tag. But I can't seem to be able to successfully rewrite my > snippet of Struts RT in EL. > > This works: > > <%@ page import="org.apache.struts.Globals"%> > <%@ page import="org.apache.struts.action.ActionMessages"%> > ... > <logic-rt:present name="<%=Globals.ERROR_KEY%>"> > <html-rt:errors property="<%=ActionMessages.GLOBAL_MESSAGE%>"/> > </logic-rt:present> > > > But this doesn't work (using the logic & html EL taglibs): > > <%@ page import="org.apache.struts.Globals"%> > <%@ page import="org.apache.struts.action.ActionMessages"%> > ... > <logic:present name="org.apache.struts.Globals.ERROR_KEY"> > <html:errors > property="org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE"/> > </logic:present> > > > > Can anyone help? > > Thanks > -- > bOOyah > > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]