Re: FollowUP: 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 6:43 PM, Ken Bowen wrote: > Thanks for all the responses. > 1. After posting the original, I thought about it all at lunch, and was > leaning towards the db solution, and Chris firmly pushed me over on > that. Now I just convert th

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

FollowUP: Problem moving from file upload servlet to JSP

2010-04-19 Thread Ken Bowen
Thanks for all the responses. 1. After posting the original, I thought about it all at lunch, and was leaning towards the db solution, and Chris firmly pushed me over on that. Now I just convert the byte stream to a (sometimes big) string, and stuff it in a temporary db place using the use

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

Problem moving from file upload servlet to JSP

2010-04-19 Thread Ken Bowen
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 resulting from the computations. I'm having some t

Re: file upload servlet

2008-02-27 Thread Kimberly Begley
ah - ok - thanks for clearing that up. On Thu, Feb 28, 2008 at 4:59 PM, Bob Hall <[EMAIL PROTECTED]> wrote: > > --- 10:07PM Wed 27 Feb 2008 Kimberly Begley > <[EMAIL PROTECTED]> wrote: > > > Hi - I'm trying to compile come java code to upload > > a file but am getting > > errors - it looks like i

Re: file upload servlet

2008-02-27 Thread Bob Hall
--- 10:07PM Wed 27 Feb 2008 Kimberly Begley <[EMAIL PROTECTED]> wrote: > Hi - I'm trying to compile come java code to upload > a file but am getting > errors - it looks like it can't find the > javax.servlet stuff to import and > from what I've read online everyone talks about > having the direct

file upload servlet

2008-02-27 Thread Kimberly Begley
Hi - I'm trying to compile come java code to upload a file but am getting errors - it looks like it can't find the javax.servlet stuff to import and from what I've read online everyone talks about having the directory in the classpath but I have also read not to mess with my classpath - I'm trying