Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-03-2008, 11:58 AM
Member
 
Join Date: Jan 2008
Posts: 20
sandeeprao.techno is on a distinguished road
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 ???
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-03-2008, 05:01 PM
Senior Member
 
Join Date: Jun 2007
Location: Bali, ID
Posts: 102
wsaryada is on a distinguished road
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:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Blog:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-04-2008, 09:04 AM
Member
 
Join Date: Jan 2008
Posts: 20
sandeeprao.techno is on a distinguished road
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??
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-05-2008, 05:08 PM
pao pao is offline
Member
 
Join Date: Jun 2008
Posts: 41
pao is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-07-2008, 09:37 AM
Member
 
Join Date: Jan 2008
Posts: 20
sandeeprao.techno is on a distinguished road
Search field in the browser
Thanks pao,
I am not familiar with ajax, I have used javascript for doing the search...
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
get numeric value from a text field Lehane_9 New To Java 2 06-14-2008 05:19 AM
Field Level Security narayanasgs Web Frameworks 0 05-30-2008 10:34 AM
Object Reflection: Getting field value Java Tip java.lang 0 04-23-2008 10:12 PM
Help with define an integer field trill New To Java 1 08-07-2007 09:32 AM
Final field question derrickD Advanced Java 1 04-29-2007 12:37 AM


All times are GMT +3. The time now is 12:30 PM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org