Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 servlet api used for conneting database?

0 Answers  


What is use of parseQueryString?

1 Answers  


Why are servlets used?

0 Answers  


when the webcontainer creates ServeletConfig,ServletContext objects? befoure creating the Servlet object or not?

4 Answers   TCS,


What's the architecture of a servlet package?

0 Answers  






How to get the path of servlet in the server?

0 Answers  


Whether thread can be used in servlets?

0 Answers  


How to make servlet thread safe?

9 Answers   Frisco Tech, InfoVista, WipSys Technologies,


How many ways to remove the session object in the container

6 Answers   Bosch,


What is war file?

0 Answers  


Why jsp is better than servlet?

0 Answers  


Why are http servlets used in programming?

0 Answers  






Categories