Viswanathan Pachaiyappan wrote:I have a jsp page wherein i have to passs the file as input and read the contentsn of a file in servlet.
<FORM METHOD=POST ENCTYPE="multipart/form-data" ACTION="upload"> File to upload: <INPUT TYPE=FILE NAME="upfile"> <INPUT TYPE=SUBMIT VALUE="Submit">
//In upload servlet page i have tried to read the contents of a file in doPost method. I have used
//It shows null. How to read the content in a file and display in servlet?