Hi, I am using struts taglib. I have a object like
public class myObject{
List myList;
List getList(){
return myList;
}
...
}
The myObject is send through aciton to the jsp. In my
jsp, I have:
...
<bean:define id="l" value="myObject.list"/>
<logic:iterate id="obj" collection="l">
...
</logic:iterate>
But it complains that " Cannot create iterator for
this collection" which means myList is not reconginzed
as a list.
What is wrong?
Thanks,
qq
--- Paul Benedict <[EMAIL PROTECTED]> wrote:
> Hakan,
>
> You need to store the error messages in the request
> or session after you retrieve them:
>
> ActionErrors errors = form.validate();
> if ((errors != null) && !errors.isEmpty()) {
> saveErrors(request, errors);
> return mapping.getInputForward();
> }
>
> Paul
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]