Results 1 to 5 of 5
Thread: Search field in the browser
- 06-03-2008, 09:58 AM #1
Member
- Join Date
- Jan 2008
- Posts
- 24
- Rep Power
- 0
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 ???
- 06-03-2008, 03:01 PM #2
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 696
- Rep Power
- 6
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.Website: Learn Java by Examples
- 06-04-2008, 07:04 AM #3
Member
- Join Date
- Jan 2008
- Posts
- 24
- Rep Power
- 0
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??
- 06-05-2008, 03:08 PM #4
Member
- Join Date
- Jun 2008
- Posts
- 43
- Rep Power
- 0
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.
- 06-07-2008, 07:37 AM #5
Member
- Join Date
- Jan 2008
- Posts
- 24
- Rep Power
- 0
Similar Threads
-
get numeric value from a text field
By Lehane_9 in forum New To JavaReplies: 2Last Post: 06-14-2008, 03:19 AM -
Field Level Security
By narayanasgs in forum Web FrameworksReplies: 0Last Post: 05-30-2008, 08:34 AM -
Object Reflection: Getting field value
By Java Tip in forum java.langReplies: 0Last Post: 04-23-2008, 08:12 PM -
Help with define an integer field
By trill in forum New To JavaReplies: 1Last Post: 08-07-2007, 07:32 AM -
Final field question
By derrickD in forum Advanced JavaReplies: 1Last Post: 04-28-2007, 10:37 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks