java - How to get browsed filepath in jsp..............? -


hi selecting txt/xls file through , need pass same function read content , not happening me ....... how can pass file path file content reader function

code using browse file:

    <input type="file" name="uploadfile" id="uploadfile" size="40" value=""/>  bufferedreader bf =  new bufferedreader(new filereader(*** file path here ***));  bufferedreader bf =  new bufferedreader(new filereader("cia.txt")); 

i want dynamic selected files file reader......

thank you..

if variable "uploadfile" file type variable(need be) try uploadfile.getabsolutepath()

btw server side technology using(framework)


Comments

Popular posts from this blog

Python __call__ special method practical example -

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -