This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 9435

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
I agree. Here's the link:
subject: arraylist nullified in logic:notempty
It's not a secret anymore!