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 sessions in servlets?
Why do we need servlet filter?
why are extending GenericServlet and why are extending HttpServlet explain?
In which cases Destroy() is invoked?
What is the difference between servlet and filter?
What are different types of SessionTracking?
Which exception is thrown if the servlet is not initialized properly?
when the several requests comes to server..how it manage the requests
What are advantages of servlets over cgi?
What's the difference between servlets and applets?
How can you maintain servlet chaining?
What is the need of session tracking in HttpServlet ?