GeeCON Prague 2014*
The moose likes JDBC and the fly likes Please help me for implementing search functionality in my screenbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "Please help me for implementing search functionality in my screenbox " Watch "Please help me for implementing search functionality in my screenbox " New topic
Author

Please help me for implementing search functionality in my screenbox

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
In my front end developed with JSP + JavaScript .
I have a Textbox which allows users to enter and press the Submit Button .

The problem is that in the Texbox he/she can enter different values Like this for example typically found in a job site.

keywords java Hibernate EJB


and press submit submit Button.

How can i extract all these values in my servlet and how can i put all these values in a PreparedStatement ??



If you want something you never had do something which you had never done
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
RaviNada Kiran wrote:
How can i extract all these values in my servlet
Using javax.servlet.http.HttpServletRequest and java.lang.String methods.

and how can i put all these values in a PreparedStatement ??

Using PreparedStatement#setString().

That said, I would rather use a well developed search engine library such as Apache Lucene instead of gobbling one together which may not be efficient and performant after all.
RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Thanks Bauke for your prompt reply.

 
GeeCON Prague 2014
 
subject: Please help me for implementing search functionality in my screenbox