Here is a kickoff:<form>
<input type="text" name="search" />
<input type="submit" />
</form>
Where are you stucking while finishing the code? Please ask specific questions.
hi,
using the above syntax i create a text box in my page.
i pass the value to the servlet on the Fomr onsubmit event and retrieve the value in servlet.
my question is i want to match the value with the other html pages in a specific folder and find the pages and location of the text that would be present in the page.
You need to index the page contents and store it somewhere (database, textfile, binaryfile, etc) and write code to crawl in the index. You can write it all youself, but as I guess that you're not very skilled to do that, it might be worth to take a look for several 3rd party Java Search Engine API's:
http://www.google.com/search?q=java+search+engine+api