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 |
Why doesn’t a servlet include main()?
What is java servlet?
What is the importance of init() method in Servlet ?
Why doesn’t a servlet include main()? How does it work?
what are the disadvantages of cookies?
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
which method in doGet or doPost is use to send binary date to server
What is difference between cookies and httpsession?
How does Cookies work in Servlets?
What are all the advantages of servlet over cgi?
How do you deal property files in servlet?
What do you mean by the servlet chaining?