This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Languages » Groovy
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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?


GenRocket - Experts at Building Test Data
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Read a File and list the record from DB using Groovy