Can we use servlets in JavaScript?

Answers were Sorted based on User's Feedback



Can we use servlets in JavaScript?..

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

Can we use servlets in JavaScript?..

Answer / subrahmanyam

NO

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More Servlets Interview Questions

What is the role of the webserver?

4 Answers  


What is the difference between servlet and filter?

0 Answers  


What is servlet initializer?

0 Answers  


I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

0 Answers   IBM,


What is the difference between JspWriter and PrintWriter

4 Answers   Artech,






What is a Session Id?

1 Answers  


Why jsp is better than servlet?

0 Answers  


How can we upload the file to the server using servlet?

0 Answers  


What are the types of Session Tracking ?

0 Answers  


How to get the actual path of servlet in server?

0 Answers  


What is the capacity the doget can send to the server?

0 Answers  


What are the ways to handle multi-threading in servlets?

0 Answers  


Categories