• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Please help me for implementing search functionality in my screenbox

 
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ??


 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bauke for your prompt reply.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic