Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JSP and the fly likes Empty bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Empty bean" Watch "Empty bean" New topic

Empty bean

C?dric Maria-Sube

Joined: Dec 12, 2002
Posts: 1
Hello to all,
I'm using Tomcat 3.2.1. and I'm getting empty java beans.
What I mean is that I setup a correct database connection, fetch the data, store it in my beans, put the beans in an ArrayList, print the content of the ArrayList in a file (so the list is full), and send the list via the setAttribute method of
HttpServletRequest in my servlet.
Once in my JSP, the ArrayList is instanciated (not null) but empty.
Does anybody know why this is so?
Thanks for your help.
Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

could be a million reasons. How is it instantiated and what does the constructor look like? Why is it instantiated if it already is supposed to be there containing data?
I agree. Here's the link:
subject: Empty bean
It's not a secret anymore!