jsp application

hi all, i have a jsp application and i want to read a file from the client machine.what are the possible ways to read a file from the client machine and get the data.its urgent.thanks in advance
[215 byte] By [paridaa] at [2007-11-26 14:48:28]
# 1

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.....

KayDeEa at 2007-7-8 8:36:17 > top of Java-index,Java Essentials,New To Java...
# 2

<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

astelaveestaa at 2007-7-8 8:36:17 > top of Java-index,Java Essentials,New To Java...
# 3
hi,actually what i need is to read the client side file and send the content of that file to any other application through a servlet or jsp.is it possible in any way plz guide as soon as possible.thanks
paridaa at 2007-7-8 8:36:17 > top of Java-index,Java Essentials,New To Java...