Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please help me for implementing search functionality in my screenbox

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ??


 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bauke for your prompt reply.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic