Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
kavya tandel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic