ok. it works But the System.out shows me the message id in the application resource file.(errors.required for example)
How can i print it on the jsp page using a simple bean? Thank you very much You have been very helpful ---------- Initial Header ----------- From : Michael Ruppin To : Struts Users Mailing List Cc : Date : Tue, 22 Jul 2003 08:32:00 -0700 (PDT) Subject : Re: a_little_question:Please_help_me > Try: > > org.apache.struts.action.ActionErrors errs = > (org.apache.struts.action.ActionErrors)request.getAttribute("org.apache.struts.action.ERROR"); > if(errs!=null){ > Iterator i=errs.get(); > while(i.hasNext()){ > org.apache.struts.action.ActionError err = > (org.apache.struts.action.ActionError)i.next(); > if (err!=null) { > > System.out.println("ERROR.key="+err.getKey()); > } > } > } > > HTH > > m > > --- bacco77 <[EMAIL PROTECTED]> wrote: > > Hi all. > > Just a little question. > > How can i iterate the ActionErrors errors collection > > to display messages > > into my jsp without using logic tags ot any other > > tag. > > Is ti in the request or in the session scope? > > How cani get it? > > > > Please help me > > > > Thanks > > > > Antonio Senatore > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > --------------------------------------------------------------------- > 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]