posted 15 years ago
Hi,
Thanks to everyone for their responses so far.
I have made the request.getRequestDispatcher() method work by calling the servlet direct from the following code:
So the problem must be the way I am calling the servlet, or something from the client side. What I originally had for my client side code was:
HTML:
and for the javascript:
I think that the sendLogin() function is the critical thing, but I can't see any reason as to why there would be any difference to this than the simpler html that I mentioned in this post. Is it something to do with the jQuery '$.post()' method? It works fine in the sendSignup() method and as I've written before, all the params etc are getting through and the servlet is running right through to the end, so I don't see why it would make any difference how the doPost() method of my Servlet (which has the request.getDispatcher() code in) was called. It should result in the same result...except it doesn't.
Can anyone help please?
Joe