Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp.JspException: No collection found

 
SambaSiva Goud
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Posting your jsp code would help.

- Brent
 
Abhilash George
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>.
 
nsd nn
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic