You are mixing up client and server side code. The error "no source
available for java.io.FileReader" tells me you are trying to run server side
code in the browser, which just won't work.

Here is how your use case would work -
a) Create a FormPanel with a FileUpload widget. This will allow the user to
upload the csv file
b) The Form should submit to a servlet which is able to handle mutipart
content type. There are ready-to-use libraries that handle this.
c) Once the file is available on the server side, you can parse it and  do a
mass import to mysql.


--Sri


2009/9/18 monk3y <[email protected]>

>
> A more descriptive error message might help a bit better.
>
> Also if you can provide some server side code, that would help
> too!! :).
>
> On Sep 18, 5:50 am, GumbyGWTBeginner <[email protected]>
> wrote:
> > Hi Guys,
> >
> > I am trying to write CODE to read a CSV file from a USERS PC (i.e.
> > User Browses to a file on HD) to do a mass import to a MYSQL Database.
> >
> > I think I have lost my way in the sense that I used a sample fromhttp://
> www.hostitwise.com/java/java_io.htmland keep getting an error
> > stating that there is no source code for java.io.FileReader.........
> >
> > Any help would be greatly appricated.
> >
> > Many thanks in advance.
> >
> > Stephan
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to