This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Could it be Tomcat; I cant get my result on the screen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Reply locked New topic

Could it be Tomcat; I cant get my result on the screen

Jeanne Pierre

Joined: Feb 23, 2006
Posts: 19
I am working with a simple html page that once the submit button is pressed it sends a request to a Java servlet which then accesses data from a database using JDBC. Everything seems to be working fine except when I hit the submit button on the html page. I get part of what I expect. I expect to see a html page with a table with information. I get the title of the cells but not the content from the query. I did a view source on that page and it seems like it breaks right after the cell titles are written. I executed a query from the command line and the database is connecting and I also get the results that "should" show up on th e screen. I tried it on IE as well as FireFox same thing happens. I was wondering if anyone had any suggestion of why this could be happening and what I need to do to fix it.

This is the Servlet Code:

This is the html code:

this is the result from the view source:

Any help is greatly appreciated!! Thank you
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Jeanne Pierre, please do not cross-post the same question in more than one forum.

[Asking smart questions] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: Could it be Tomcat; I cant get my result on the screen
It's not a secret anymore!