Saturday, March 6, 2004 12:15 PM
On the client side, I guess if you have a signed applet and the user has configured the browser with the right security policy, then it could be allowed to read the file there locally on the client. So the applet would do your 'read first 10 lines, display and prompt for whether to upload'.
The JSP wouldn't be invoked until and unless the user tells the applet to proceed with the upload, and the applet POST's the data to the URL for the JSP.
I suppose you could have the applet only upload the first 10 lines or whatever of the file, assuming you have it reading the local file in the first place.