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 life-cycle of servlets?
How do we call one servlet from another servlet?
Name the servers that can be used to develope and deploy Servlets?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
What is servlet and its use?
How the typical servlet code look like ?
How do you define a servlet?
why we should override only no-agrs init() method.
what are binding listners?
hi.... i have problem in running of servlet. i am using Tomcat server in my pc.. The problem is when i am click on strat it will display like below FAIL - Application at context path /first could not be started.. How i can slove the problem.. help plz
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 cookie in servlet?