aspose file tools*
The moose likes JSP and the fly likes how to display data from db in textbox according to data selected in combobox in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to display data from db in textbox according to data selected in combobox in jsp" Watch "how to display data from db in textbox according to data selected in combobox in jsp" New topic
Author

how to display data from db in textbox according to data selected in combobox in jsp

kavya tandel
Greenhorn

Joined: Feb 25, 2005
Posts: 1
i m new in jsp....
so,plz help me...
i have one combobox which has id.As one of id in the combobox is selected...i have to display related data from database....
So,what can i do?
thnks....
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by kavya tandel:
i m new in jsp....
so,plz help me...
i have one combobox which has id.As one of id in the combobox is selected...i have to display related data from database....
So,what can i do?
thnks....


- Make a request to the server
- check the combo parameter there on server
- retrieve the corresponding data from the database
- respond to the same jsp and show the data there in the text field

If you are not getting me then please send that specific point where you have trouble.
Eugene Lucash
Ranch Hand

Joined: Feb 19, 2005
Posts: 77
Jsp development is not desktop development.
Try to think about webapp in terms of pages, query parameters and
form posting. To retreive some data you almost always need to post some
data to server and return the same page or another one with updated values.
Similar topics have been discussed here many times (recently)

regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to display data from db in textbox according to data selected in combobox in jsp