struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bOOyah <boo...@nowhere.org>
Subject ActionErrors in my JSP: how can I rewrite this RT snippet as EL?
Date Thu, 22 Apr 2004 00:31:31 GMT
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message