Run the query (SELECT * FROM log) from a different method. Create a custom object, run the query, put the results inside the object and have that method return a list with the data.
Call that method form the servlet.
The servlet will have only that call. Once you get the list, put it into the request and send it to the page you want it displayed. And I believe that, that is the problem. In the servlet, you don't specify where you want to display the data. You should declare the jsp where the out.print will print.
Also never put html code in a servlet. Send the data to a jsp page and use html tags for displaying.
In general delete everything you have written. Try to find a book about JSPs and learn HTML. Use objects and separate methods.
You must be able to know very good java before going to JSPs. Meaning that should know how to use objects and most important you should close the Connection and everything else in a finally block, which you don't.
public void doGet(HttpServletRequest inRequest,
HttpServletResponse outResponse) throws ServletException,
IOException {
try {
ArrayList<CustomObject> list = .... call a method from another class
// put the list in the request
// send it to a jsp
} catch (Exception e) {
// put the error in the request
// send it to a jsp
}
}