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 |
How do you communicate in between Applets and Servlets?
If a servlet is not properly initialized, what exception may be thrown?
Why are http servlets used in programming?
Can you explain in detail 'javax.servlet' package?
How can you start a jta transaction from a servlet deployed on jboss?
Explain the difference between a web server and a web container?
What is Servlet API used for connecting database?
Hi Friends, Suppose you have a web appliction which consists of 100 clients are connected with Connection pooling and they are associated with 100 connection objcet and connected with DB sever,Due some problem DB-Server suddenly crashed and server came to down state for a while after few minutes DB-server once again up,Now how will I manage my Pool Management with my 100 clients...can any one tell me??????????????????
What is filter? Can filter be used as request or response?
What’s the difference between sendredirect and forward methods
Explain mvc pattern.
How many objects of a servlet is created?