View Single Post
  #1 (permalink)  
Old 04-25-2007, 08:23 PM
orchid's Avatar
orchid orchid is offline
Member
 
Join Date: Apr 2007
Location: Midwest
Posts: 60
orchid is on a distinguished road
struts No Collection Found
I am getting this error:"javax.servlet.ServletException: No collection found
org.apache.jasper.runtime.PageContextImpl.doHandle PageException(PageContextImpl.java:825)"
I have been googling for the answer and nothing helps. I do what they say but there seem to be a lot of unanswered questions about this.
Here are the details. The list has 4 elements in it.

//jsp looks like this

<logic:iterate name="protocolListForm" property="protocols" id="protocol">
list will be here
</logic:iterate>

//Action looks like this
Code:
System.out.println("Size of list is " + results.size()); ProtocolListForm pForm = new ProtocolListForm(results);
//Form looks like this
Code:
private List<CollectionProtocol> protocols = null; public ProtocolListForm(List <CollectionProtocol>results) { this.protocols=results; } public List getProtocols() { return protocols; } public void setProtocols(List <CollectionProtocol>protocols) { this.protocols = protocols; }
Reply With Quote
Sponsored Links