aspose file tools*
The moose likes JDBC and the fly likes saving data in resultset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "saving data in resultset" Watch "saving data in resultset" New topic
Author

saving data in resultset

raj chopra
Ranch Hand

Joined: Apr 09, 2012
Posts: 60

Hi,

I need to pass a list of date values into query at 2 different locations for getting the count between the date range.I am facing trouble in passing them.The location denoting by xxx represents i need to pass the list of dates in list "dts" and the lcoation represented by yyyy represents the list of dates in list "dts2".

code :



i used the for loop befor the query start and executed the query.the query was succesful and with the print statements i got the correct results.however if i am trying to save the results in form beans, only the last value of the result set is being saved.i am not able to save all the rows data in form beans. Is there any orther way so that i can get all the dates passed to query and i could get all the data in resultsses? please suggest..!


Reagrds,
raj chopra
 
Consider Paul's rocket mass heater.
 
subject: saving data in resultset