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 process for chaining servlet?
what is the difference between?when we write the code in following manner? class One extends httpservlet { } and class One extends genericservlet { }
What do you mean by filter in servlet?
What are the features added in Servlet 2.5?
How do you create a cookie using servlet?
What are the phases of servlet life cycle?
How to set a cookie that is persisted only for the duration fo the clients session?
What is ServletConfig object?
What mechanisms are used by a Servlet Container to maintain session information?
What is Request Dispatcher?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
What is the difference between genericservlet and httpservlet