I'm not really sure what you're asking - you're not going to find one tool that does both text and database searches.
In the case of your text JSPs, you could use something like
Lucene or just let
Google do it for you.
As far as searching the database... wouldn't you just use SQL queries for that?