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 |
If my browser does not support cookie, and my server sends a cookie instance what will happen?
Can filter be used as request or response?
What is servlet api used for conneting database?
Name the webserver that is used to run Servlets?
What is http servlet in java?
What is the difference between using getSession(true) and getSession(false) methods?
Which method of the httpservletrequest object is used?
How to set a cookie that is persisted only for the duration fo the clients session?
What mechanisms are used by a Servlet Container to maintain session information?
Is the init(ServletConfig sc) throws IOException or not?
What is meant by cookies?
what is OOAS