Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Ken Bowen
The confusion results from the fact that I initially used the redirect in the simple case. Then I tried to switch to the forward in the more complicated case, and got in a mess. But now I've simply stored everything in the db right away, and used a redirect to get to the jsp where I do all t

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Pid
On 19/04/2010 22:21, Christopher Schultz wrote: > Ken, > > On 4/19/2010 12:06 PM, Ken Bowen wrote: >> > enctype="multipart/form-data"> File:> name="csvfile2upload"> > value="Upload CSV File" onclick="uploadCSVFile();return false;"> >> > > Looks good, except for that "uploadCSVFile" javascript t

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Ken Bowen
Just aritfacts of step by step changes (as I come to understand various thingies): should be type "button", but gives no evidence of two events. On Apr 19, 2010, at 5:19 PM, André Warnier wrote: Ken Bowen wrote: ... Long form. Here's the html for file upload (vanilla): enctype="multipar

RE: Problem moving from file upload servlet to JSP

2010-04-19 Thread Propes, Barry L
My guess is that he may have other various pieces of validation tied to it, client side. And he might even have some client-side validation intertwined for the type of file in an array, - i.e. .xls, .doc., .txt etc. as an acceptable file type to upload, though, like you, I have no idea not hav

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/19/2010 5:19 PM, André Warnier wrote: Ken Bowen wrote: ... Long form. Here's the html for file upload (vanilla): File: Without and before getting to the Java stuff, I do not really understand

RE: Problem moving from file upload servlet to JSP

2010-04-19 Thread Propes, Barry L
You sure about that? I've got mine that way (button of type "submit", but with an "onClick" event triggering a javascript function.) and it works fine. André Warnier wrote: ... > > Long form. Here's the html for file upload (vanilla): > > enctype="multipart/form-data">

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/19/2010 5:19 PM, André Warnier wrote: > Ken Bowen wrote: > ... > >> >> Long form. Here's the html for file upload (vanilla): >> >> > enctype="multipart/form-data"> >> File: >> > onclick="uploadCSVFile();return false;"> >> >> > W

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, On 4/19/2010 12:06 PM, Ken Bowen wrote: > enctype="multipart/form-data"> File: name="csvfile2upload"> value="Upload CSV File" onclick="uploadCSVFile();return false;"> > Looks good, except for that "uploadCSVFile" javascript trigger. Why not

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread André Warnier
Ken Bowen wrote: ... Long form. Here's the html for file upload (vanilla): enctype="multipart/form-data"> File: onclick="uploadCSVFile();return false;"> Without and before getting to the Java stuff, I do not really understand why above you have a button of type "submit", but with

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Pid
On 19/04/2010 17:06, Ken Bowen wrote: > Using Tomcat 6.0.18 (to be 6.0.26) and Google App Engine, for parallel > development (different db tech) > > Short form: I need to accept a file upload in a servlet, do some > computations on the upload, and then transition to a JSP with some data > resulti