This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
A servlet or JSP must be hosted in a servlet container such as Tomcat. What are you actually doing?
Joined: Aug 24, 2011
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.
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.