Originally posted by paresh doshi:
my file is in C:\Javaranch.html
None of the techniques suggested by any of us will work unless the html file is in the context root of your application or one of its subdirectories.
If you need to display a file that is outside of the context root, you would need to use the classes in the java.io package to read the file and output it to the HTTPServletResponse object's output stream.