In the servlet you have to write Java io logic like
Getting FileInputStream object and read the file using the methods in that class and store the total chars of file into a string.
Then pass this string arg to jsp file.
In jsp u can get the parameter value and print it using out object.

Regards,
Ch.suresh