I have a servlet that performs some JDBC logic and based on the outcome I want to send back an alert to the client. The information is being sent to the sever via an AJAX call through POST.
Here is what I am doing:
Anything fundamentally wrong? Thanks! [ December 10, 2008: Message edited by: Rob Hyx ]
Just because you send JavaScript back to the client via Ajax, doesn't mean it's going to be executed. What are you doing on the client side to execute it?
Your best bet is to let a library like jQuery do your Ajax for you. It will handle details such as this.