Are you talking about a Java applet? That would be the way to embed a Java program within a webpage. Having said that, search is a complex process, and it really depends on how your site is built...