This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes get database values based on text entered Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "get database values based on text entered" Watch "get database values based on text entered" New topic
Author

get database values based on text entered

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
I have a text field grpid and based on the grpid I enter I need to populate database values for 3 other text fields in the page. Should I call a action class onchange of textfield ? Is this the right approach.
Arulanand Dayalan
Ranch Hand

Joined: Aug 10, 2005
Posts: 124
Your approach is correct.It a traditional approach and its widely used, but the disadvantage of it is it would re-load the entire page again. The other way of doing it using Ajax.

Hope this helps.

Thanks and Regards,
Arul.
 
jQuery in Action, 2nd edition
 
subject: get database values based on text entered
 
Similar Threads
how to show the request and result in same page
j2me database as text file
adding dyanmic textboxes and submitting it to ActionForm
array of sub Sets from parent Set ?
jsp + dropdown + automatically populate the vales from the db in the Text box