hi..
1. When We use RequestDispatcher to redirect a request some other Page
Which Method(GET Or POST Or Depend upon the previous Request)It will Use....
answer to this is the thrid option.. it will be processed according to the original request sent by the client.
2. Can We call Destroy method inside the Service Method in Servlet
for this.. i don't think we can call destroy() inside service().. destroy is supposed to be called by the client...
3. What is the Difference Between redirectURL() and RequstDispatcher
in redirecting the page
here i want to ask whther any method redirectURL() exists... if it exists then i am sorry i am not aware of it (please let me know in which class or interface does it exist!!).. what i know is there are two ways of redirecting the servlet..
1. response.sendRedirect()
2. request.getRequestDispatcher().forward(request, response);
the difference between two is that.. in first method.. the response is commited to client and then the client is forced to call the URL mentioned as the parameter..
but in second case.. the request is forwarded as it is came to another servlet .. so the extra round to client is saved..
but using the first method u can call any URL of another server, which is not possible in second case.. the RequestDispatcher has to have a relative or excat URL of same server on which the redirecting servlet resides.
i think this should be clear... correct me if i am wrong...
Thanks
Amit