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 are all the protocols supported by httpservlet?
what is servlet chaining?
What is the purpose of requestdispatcher interface?
What is URL Rewriting ?
What is cgi?
What do you mean by session tracking and also explain its techniques?
What is session?
Can a servlet be called by passing its name as a parameter in the URL?
when will cookie information destroy?
What are the classes and interfaces for servlets?
How to invoke a Servlet?
what is the difference between servlets and struts?