I am routing from javascript to servlet with the following snippet in one function of javascript. It's giving me ServletClassNotFoundException or request cannot be processed. Note: I am neither using AJAX nor I want to.
Here is the code:
document.resultsentry.action="/servlet/ResultsServlet?sidlist="+idlist+"&qrtr="+qrtr ;
Symptom 1: The address bar is showing everything what it needs to but the content of the page throws the above mentioned error.
Symptom 2: Also, the other way, I tried and gives me request cannot be processed.
----------------
I have done jsp calling servlet or viceversa. It works fine. But the route from js->servlet throws me exception or request not processed.
In JSP, I used to keep action="../servlet/kcasdhjagk?asdhaj=asdbha" and it works.
Your advise reqd.
Thanks.