This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet is not printing table on page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet is not printing table on page" Watch "Servlet is not printing table on page" New topic
Author

Servlet is not printing table on page

Aatka Ali
Greenhorn

Joined: Aug 24, 2011
Posts: 4
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

Joined: Mar 22, 2000
Posts: 12761
    
    5
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

Joined: Aug 24, 2011
Posts: 4
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

Joined: Feb 07, 2011
Posts: 9

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet is not printing table on page
 
Similar Threads
how to populate a list in a another select tag using a select tag using struts 2 & DOJO (ajax)
alert in servlet with 'Are you sure you want to delete?'
request.getAttribute() returns null in the JSP page
retrieve value at servlet from javascript.
want to show table on ajax based page using servlet