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 |
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
What is meant by servlet? What are the parameters of the service method?
How we can get ip address of client in servlet?
i have class files in class folder. but i have no java files. but i want to modify the java files which are related to class files . how ?
What is called servlet container?
What are the supporting protocol by HttpServlet ?
What exactly is a servlet?
What is the major difference between context parameter and context attribute?
explain the advantages of servlet life cycle?
Is there any differance b/w getting servlet context from servlet config and session? if yes then what is that?
what is servlet chaining?
The code in a finally clause will never fail to execute, right?