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 a cookie What is the difference between session and cookie

0 Answers  


how do you maintain sessions in servlets?

5 Answers   AZTEC, L Cube,


What are sessions in servlets?

0 Answers  


Difference between Include, Forward and sendRedirect in Servlet?

7 Answers   AZTEC, KPIT, TCS,


Explain the difference between a web server and a web container?

0 Answers  






When the methods init() and Distroy() will be called?

2 Answers  


What is the difference between ExecuteUpdate and ExecuteQuery?

4 Answers  


What are the different ways we can maintain state between requests?

0 Answers  


What advantages do servlets have over CGI programs?

5 Answers  


What is war file?

0 Answers  


What do you mean by scope object and what are its types?

0 Answers  


Hi guys.. Well can u tell me that why there is need of "init()" , i mean why can not we initialize the servlet object with the help of constructors? Thank you.

7 Answers  


Categories