File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: get database values based on text entered