wood burning stoves 2.0*
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
Author

arraylist nullified in logic:notempty

Acharya Thiyagarajan
Greenhorn

Joined: Aug 01, 2009
Posts: 18
Hi,

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..

Regards,
Acharya
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: arraylist nullified in logic:notempty
 
Similar Threads
Unable to access ArrayList values from JSP
getting null values from DB
Struts2: Retern all the values inside the list in my Action
Unable to understand the setAttribute in java
dynamic multibox - populate an Array in ActionForm from Action class