This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 15286
    
    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 - A Test Data Generation Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Read a File and list the record from DB using Groovy
 
Similar Threads
Array problem.
Critique Please
Problem with reading txt file into 2d array
How to use a JProgress Bar
JTable and getValueAt()