Mike,
Since servlets run on the server the only way to process the file is to upload it, process it and then return the results as HTML or as a downloaded file.
If you want to process on the client, then check out signed
applets. Frankly, I think these have limited use as the user must have the correct JVM version to run applets and must grant the appropriate permissions.