struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ruppin <mrup...@yahoo.com>
Subject Re: a_little_question:Please_help_me
Date Tue, 22 Jul 2003 15:32:00 GMT
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 <bacco77@libero.it> 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:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message