wood burning stoves
The moose likes Struts and the fly likes arraylist nullified in logic:notempty Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "arraylist nullified in logic:notempty" Watch "arraylist nullified in logic:notempty" New topic

arraylist nullified in logic:notempty

Acharya Thiyagarajan

Joined: Aug 01, 2009
Posts: 18

when i return the arraylist from the action to the jsp the values is completely populated. But on the jsp it is null. To confirm i kept break points in the setter and getter methods of the arraylist and the exact place in the jsp. In form while setting all the values are there but while getting the arraylist is null and that comes while the jsp is painting. there are no other flows in the middle. What Can be the possible issue?? I am exhausted. Please help..

Ankit Garg

Joined: Aug 03, 2008
Posts: 9464

Is the ArrayList empty in the JSP or is it null when you try to access it. Maybe you are looking in the wrong scope. Can you please post the relevant part of your source code and the struts version you are using...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
It is sorta covered in the JavaRanch Style Guide.
subject: arraylist nullified in logic:notempty
It's not a secret anymore!