struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject html:messages
Date Thu, 13 Jun 2002 22:22:54 GMT


I cannot get the new messages tag to work for me...  I also can't find 
anything anywhere on how to use it...

In my action I am doing this:

When I run this it whines about the ID being required.  I looked at what 
the id attribute is for and I cannot seem to figure out
where it shoud point to...  I've tried many many things so far...


----------------ACTION CODE---------------------------
ActionMessages amsgs = new ActionMessages();                
ActionMessage am = new ActionMessage("drilldown.results.nomatches");
request.setAttribute(Action.MESSAGE_KEY, amsgs); 
return (mapping.findForward("continue"));                

----------------JSP CODE--------------------------------
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/display.tld" prefix="display" %>
<font color="Red"><html:errors/></font>
<font color="Blue"><html:messages/></font>

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

View raw message