jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "jsp.JspException: No collection found" Watch "jsp.JspException: No collection found" New topic

jsp.JspException: No collection found

SambaSiva Goud

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

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
b) The jsp page should have a check for null condition of the collection
using <logic resent>.

nsd nn

Joined: Nov 28, 2007
Posts: 1
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
jQuery in Action, 3rd edition