Can we use servlets in JavaScript?
Answers were Sorted based on User's Feedback
Answer / balu
we cant use servlets in javascript but we can call a
servlet by retrieving the form and setting the action as
the url.
ex:if our html has a from named 'XXX'
var formName = document.getElementById('XXX');
var url = contextPath + '/desiredServlet';
formName.action = url;
formName.submit();
Is This Answer Correct ? | 7 Yes | 1 No |
What is the role of the webserver?
What is the difference between servlet and filter?
What is servlet initializer?
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?
What is the difference between JspWriter and PrintWriter
What is a Session Id?
Why jsp is better than servlet?
How can we upload the file to the server using servlet?
What are the types of Session Tracking ?
How to get the actual path of servlet in server?
What is the capacity the doget can send to the server?
What are the ways to handle multi-threading in servlets?