how to get data in textbox from database when item selected in listbox in jsp without refreshing the page,
i had code that refresh the page.
Apart from being wrong on many counts, what kind of help do you need with this? It takes some kind of effort to convert an existing page into a page which uses Ajax. For this you need to learn Ajax, it's not something which someone can post for you.
If all this seems to be alien to you, then you need to work with a few Ajax tutorials here and there to get a good grasp of how things work.
i learned ajax in these 3days, and also did some examples
and also following one example(select/dropdown) option i did it in jsp
but some problems occured in that can any one send that ajax using jsp code send