sauris kumar saurabh wrote:the servlet is displaying the static text but is not able to fetch the value from html file
Servlets do not fetch values from HTML files. A servlet has no idea where data comes from.
Rather, the browser submits a request with request parameters created from the information in the form. If the servlet isn't showing the data you expect, then most likely the request doesn't contain the data that you think it does.
I'd install a Firefox plugin such as HttpFox so that you can inspect the request to see if it contains the submitted data or not.