The moose likes Groovy and the fly likes  Read a File and list the record from DB using Groovy Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Groovy
Reply Bookmark " Read a File and list the record from DB using Groovy" Watch " Read a File and list the record from DB using Groovy" New topic
Author

Read a File and list the record from DB using Groovy

s nar
Greenhorn

Joined: Sep 28, 2011
Posts: 1
This post has NOT been accepted by the mailing list yet.
I am using the following code to read a file and store it in a array and giving the array variable as a input to the query. but the query does not list any result. Please let me know what is wrong in the code.



Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

The first step is to properly format your code and place it in code tags so it is easier to read. I've taken care of that for you this time.

If you do this:



Is the value of ${a} what you expect it to be?


My Blog | DZone Articles
 
 
subject: Read a File and list the record from DB using Groovy
 
Threads others viewed
Array problem.
How to use a JProgress Bar
Critique Please
JTable and getValueAt()
Problem with reading txt file into 2d array
developer file tools