File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases 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 and Relational Databases
Bookmark "saving data in resultset" Watch "saving data in resultset" New topic

saving data in resultset

raj chopra
Ranch Hand

Joined: Apr 09, 2012
Posts: 64


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

raj chopra
I agree. Here's the link:
subject: saving data in resultset
jQuery in Action, 3rd edition