Can we use javascript in Servlets?

Answer Posted / sanjeev

Yes, If we are able to write javascript in jsp then Obviously
we can write javascript in a servlet because internally jsp
will be converted to servlet.

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is dispatcher servlet a singleton?

767


What are life cycle methods of a servlet?

814


What methods do you use in servlet - applet communication?

825


When should you prefer to use doget() over dopost()?

870


What is the procedure for initializing a servlet?

776


Is that servlet is pure java object or not?

844


What is the difference between get and post methods?

814


Define the lifecycle for executing a jsp page.

872


How can we implement a jsp page?

878


How to make sure a servlet is loaded at the application startup?

786


What are the annotations used in servlet 3?

785


Can we get PrintWriter and ServletOutputStream both in a servlet?

926


What is string tokenizer?

847


What are the different methods involved in generic servlet?

836


How will you pass values from HTML page to the servlet?

819