session bean, mysql retrieving

I have a html page in which I want to display the list of books that match with the entered keyword.

I get the keyword from the user and send it to a servlet through an ajax funtion which will inturn send it to the session bean.

Question 1:I only know to use "get" method to retrieve one value in a particular field. But I want to retrieve all the record values that match with the value entered form the session bean. How do I do that?

The session bean will return all the retrieved values to the servlet which will return all the values to the ajax funtion in the html page.

Question 2: How do I display(in the HTML page) the data I receive from the server in a structured format? (Like How google displays the retrieved websites as a list)