• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet is not printing table on page

 
Aatka Ali
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My servlet is just working on console not printing table on the page is there any solution










 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does:
My servlet is just working on console

mean??

A servlet or JSP must be hosted in a servlet container such as Tomcat. What are you actually doing?

Bill
 
Aatka Ali
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to display the table using servlet on the web page, i have used the servlet dopost method, i just want to print the list on the web page, i want to print suggestions like i write 'a' in the text box corresponding list items must display using ajax script..but initially my table in the servlet is not printing after that i will apply the conditions of ajax, the list only prints on comand prompt using system.out.println() but it is not printing on the web page.
 
jeya velan
Greenhorn
Posts: 9
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to your code are you seeing this java script alert "In ready state ".
If it is yes Put a alert for request.responseText and see what it displays.
One of thing you can try is by changing the Content type in the servlet to text/plain.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic