954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Populating combo box with values from the database

Hi All,
Hope your all well
Im really new to the world of JSP & AJAX,
my question is, I need to retrive names from a database and present them to a user on a JSP form,
but I shouldnt show any database interaction on the client end,
So as far as Ive managed to work out so far, ill need a AJAX HTTP send request to initiate the collection of names, this send request should call a JSP function to connect and gather the names and store them in an array.
then the JSP page should return the array to the respond request initiated by AJAX.

Am I on the right path here guys? if anyone could provide a really simple example code to demonstrate I would really appreciate it. I have looked at code already here but it would seem that the database connection is made on the client, I understood that to be bad practice?

if im wrong int hat too let me know so I dont waste any more time and can use that example

Kind regards

Rob

11349
Newbie Poster
2 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: