• Post Reply Bookmark Topic Watch Topic
  • New Topic

search engine : help pls

 
Preeti Sikri
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends
i need to make a search engine using JSP and java beans so pls tell me if you know about any site or u guys have some example that will be great
Regards Preeti
 
vik nuckchady
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Well that depends on whether you are going to scan all the files on your site or make queries to a database
cheers
 
Preeti Sikri
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi vik nuckchady
i'm going to search the database I mean I'll query the database now pls tell me how to go about it pls it is very important .
Regards Preeti
 
vik nuckchady
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well,
1. Your search form must tie to either a jsp page or a servlet (the JSP page is favoured cause of HTML formatting).
2. In the jsp page you'll have something like that.

3. You will then have to make a connection to the database.
4. Make a select to the proper table(s) using the keyword. For e.g:
Say your JDBC statement handle is called 'stmt'

5. Then you must verify whether the res has any values in it. If it does then use something like that below:


Hope this is what you were looking for
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!