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 |
when will cookie information destroy?
What is servlet mapping?
What’s the difference between sendredirect and forward methods
What is HTTP Tunneling?
what happens if we wont use destroy()?
What is servlet context ?
Write a servlet to upload file on server.
Differentiate between the web server and application server?
What is a Proxy Server?
How to make servlet thread safe?
9 Answers Frisco Tech, InfoVista, WipSys Technologies,
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What is the use of java servlet api?