Search Option in JSP page

Hi all,Any one can help me to do the search option in JSP pages.regards,Bala
[104 byte] By [art84a] at [2007-11-27 2:42:24]
# 1

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.

BalusCa at 2007-7-12 3:07:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

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.

art84a at 2007-7-12 3:07:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

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

BalusCa at 2007-7-12 3:07:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
hi,Thanks for u'r comments.I store the value in txtfile. my problem is without using XML how can i match the search value in the HTML pages.
art84a at 2007-7-12 3:07:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...