File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Empty bean

 
C?dric Maria-Sube
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic