As in what do you really want to do..
Do you want to upload a file at client side and send it to a central server?
In that case..u create a html form that has form action to a servlet and that form will have textbox and submit button..
u really don't need jsp..
When you click the submit button, the corr servlet will be called and you can do whatever you want there.....
<html>
<head>
<title>TxtToHtml</title>
<script>
var fso = new ActiveXObject( "Scripting.FileSystemObject" );
var f = fso.OpenTextFile( "C:\\input.txt", 1 ); //1 - ForReading
alert("Message : " + f.ReadAll());
f.Close();
</script>
</html>
This is jus an html file with javascript in it. This code will read only txt files. Cheers