Can we use javascript in Servlets?
Answers were Sorted based on User's Feedback
Answer / gsrgsrgsr
Yes you can,
In
PrintWriter out=response.getWriter();
out.println("<script langauage='javaScript'>");
out.println("your code here");
out.println("</script>");
| Is This Answer Correct ? | 42 Yes | 5 No |
Answer / 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 |
how this statement works..? public void service(HttpServletRequest request,HttpServletResponse response)
Can we override servlet service method?
How are filters?
What are the features added in Servlet 2.5?
What do you mean by cgi?
Which event is fired at the time of session creation and destroy?
What are life cycle methods of a servlet?
What is session variable in servlets?
request parameter how to find whether a parameter exists in the request object?
What happens, when client requests for server object, which is not yet loaded into the memory?
Explain the difference between GET and POST methods?
What is preinitialization of a servlet?