aspose file tools*
The moose likes JDBC and the fly likes Retriving data from java class to servlet ---> jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Retriving data from java class to servlet ---> jsp" Watch "Retriving data from java class to servlet ---> jsp" New topic
Author

Retriving data from java class to servlet ---> jsp

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 755
Hi

i have created one method as bellow to add object to an arraylist



but when i print the value using



it is giving me the same value...

OUTPUT



can anybody tell me the reason why it is happning ???I'm adding different object in masterList ArrayList of type Bean


Jigar Naik


David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

This is not a servlet problem, please try to pick the right forum for your questions.

Then check the thread here about reading from result sets.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

try this code..



hope it helps you..


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 755
yup, it helped... thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Retriving data from java class to servlet ---> jsp