Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2008
    Posts
    24
    Rep Power
    0

    Lightbulb Search field in the browser

    In a module in my project I have parsed the xml files and stored the values in mysql database and also able to retrieve and display the tables in the browser.. what I want is an editable search (textbox) in the browser where I can enter a word of my choice and search for that word in the table....(similar to what CTRL+F does...)

    I am using Tomcat 6.0 and JDK 1.5

    Any ideas ???

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    757
    Rep Power
    8

    Default

    I'm not really understand what you mean. Did you mean that you want to create an application to do a query using a JDBC to your database?

    If yes, then you need, for instance creating a JSP page that contains a form, and handle the form action using a servlet. This servlet is where you place you JDBC code such as opening a database connection, creating a statement and finally execute your query.

  3. #3
    Join Date
    Jan 2008
    Posts
    24
    Rep Power
    0

    Lightbulb Search field in the browser

    I have written the code for parsing the xml files and store the values in the data base. I was also able to retrieve the data from the database and display the table in the browser using tomcat....
    Now I want to add a search field in the browser, where I can enter some text and search for that text in the values retrieved from the database...
    Am I clear now??

  4. #4
    pao
    pao is offline Member
    Join Date
    Jun 2008
    Posts
    43
    Rep Power
    0

    Default

    You could use AJAX to do this, a lot of web sites have an auto complete type function on search field (you may have seen this). Using AJAX you dont need to refresh the page to make your jdbc calls.

    Hope this helps a little bit.

  5. #5
    Join Date
    Jan 2008
    Posts
    24
    Rep Power
    0

    Smile Search field in the browser

    Thanks pao,
    I am not familiar with ajax, I have used javascript for doing the search...

Similar Threads

  1. get numeric value from a text field
    By Lehane_9 in forum New To Java
    Replies: 2
    Last Post: 06-14-2008, 03:19 AM
  2. Field Level Security
    By narayanasgs in forum Web Frameworks
    Replies: 0
    Last Post: 05-30-2008, 08:34 AM
  3. Object Reflection: Getting field value
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-23-2008, 08:12 PM
  4. Help with define an integer field
    By trill in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 07:32 AM
  5. Final field question
    By derrickD in forum Advanced Java
    Replies: 1
    Last Post: 04-28-2007, 10:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •