struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bacco77 <bacc...@libero.it>
Subject Re: a_little_question:Please_help_me
Date Tue, 22 Jul 2003 16:01:50 GMT
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 <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
> 
> 


---------------------------------------------------------------------
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