Unable to call servlet from javascript -


i calling servlet using code:

document.location.href= '${pagecontext.request.contextpath}/dropdown'; 

while function called using onload

when page gets loaded, getting following http 404 error:

$%7bpagecontext.request.contextpath%7d 


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -