hi,
Jorge.
in strtus-logic.tld,
the sorce code of iterate what you have problem is follow.
.......................................................................
// ------------------------------------- Public Methods
........................................
........................................
pubilc int doStartTag() throws JspExecption {
// Acquire the colletion we are going to iterate over
Object collection = this.collection;
if (collection == null)
collection =
RequestUtils.lookup(pageContext, name, property, scope);
if (collection == null) {
JspException e = new JspException
(messages.getMessage("iterate.collection"));
RequestUtils.saveException(pageContext, e);
throw e;
}
.............................................
.............................................
in your program,
Collection col = facade.getSomeCollection(...);
Maybe, is col null ???
Makoto
----- Original Message -----
From: "Jorge Alberto Rodriguez Suarez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 29, 2003 10:19 PM
Subject: about Struts
> hi,
>
> In my method execute of the MyAction i have:
>
> ....
> Collection col = facade.getSomeCollection(...);
> request.setAttribute("COL", col);
> nextPage = "success";
> return mapping.findForward(nextPage);
> }
>
> and in the page that is forwarded:
>
> <logic:present name="COL">
> <logic:iterate name="COL" collection="java.util.Collection"
> type="the.type.of.the.Element" id="element">
> Element: <b>PF: <bean:write name="element" property="id" /><b></br>
> </logic:iterate>
> </logic:present>
>
> And im getting the next exception:
>
> org.apache.jasper.JasperException: Cannot create iterator for this
> collection
>
> Why?
>
> Regards
>
> Jorge.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
> http://java.sun.com/products/jsp
> http://archives.java.sun.com/jsp-interest.html
> http://forums.java.sun.com
> http://www.jspinsider.com
>
********************************
Minolta Software Laboratory Co.,Ltd.
Development Division
MAKOTO NAKAJIMA
TEL: 072-782-8967
mailto:[EMAIL PROTECTED]
********************************
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com