aspose file tools*
The moose likes Struts and the fly likes jsp.JspException: No collection found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "jsp.JspException: No collection found" Watch "jsp.JspException: No collection found" New topic
Author

jsp.JspException: No collection found

SambaSiva Goud
Greenhorn

Joined: Jun 22, 2007
Posts: 9
when i am trying to get action class it will execute perfectly but jap is not showin the error is

javax.servlet.jsp.JspException: No collection found
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Posting your jsp code would help.

- Brent
Abhilash George
Greenhorn

Joined: Apr 28, 2006
Posts: 13
The no collection found exception is coming since your jsp displays some
list or collection on the page and it is coming empty .
You need to ensure either one of the two
a)that the action which is forwarding to this page fills the collection field of the form associated with the jsp page
or
b) The jsp page should have a check for null condition of the collection
using <logic resent>.


george
nsd nn
Greenhorn

Joined: Nov 28, 2007
Posts: 1
hi
I am also getting same jsp exception: No Collection found Actually i have one search option in my page. If i open 2 browsers and try to search almost at the same time in 2 browsers, i am getting this exception for one page. When i search in a single browser i am not getting any exception. At some point between action class and jsp, the arraylist becoming null.
In my action class, before forward i am setting the arraylists to the formbean.
Here is the code:
ospEastForm.setAssociatedWorkOrders(associatedWorkOrders); ospEastForm.setWoAssoPermits(woAssoPermits);
return actionMapping.findForward("OspEastUpdate");
//in my formbean..here is the code:
private ArrayList associatedWorkOrders;
private ArrayList woAssoPermits;
public void setAssociatedWorkOrders(ArrayList associatedWorkOrders) { this.associatedWorkOrders = associatedWorkOrders; }
public ArrayList getAssociatedWorkOrders()
{ return associatedWorkOrders; }
public void setWoAssoPermits(ArrayList woAssoPermits)
{ this.woAssoPermits = woAssoPermits; }
public ArrayList getWoAssoPermits()
{ return woAssoPermits; }
Pl.let me know the fix for this issue as early as possible. thanks for your help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp.JspException: No collection found
 
Similar Threads
problem in logic:iterate
FinderException for findBySomeCriteria(...)
problem with struts application
findXXX methods in EJB 2.x
WA #1.....word association