how could i display a javascript message from a servlet.
I am searching examples
thanks for help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
that’s a bit confusing: servlet is a server-side technology. JavaScript is working at the client-side (or you have a JS server?). You probably want to use AJAX to display a result of a servlet. I suggest you trying out jQuery.
You can check out this question as well on SO: How to learn AJAX using jQuery in a Java web app