doGet() and doPost() problem
Hi,Can I change a type of method when I forward to another servlet?For example, if I in a doGet() method of a servlet I forward to a anotherservlet, can I alter the method to a POST type so I can process in a doPost()?cheers..........
[269 byte] By [
mvas2a] at [2007-10-3 8:35:19]

thanks mssuhail, I thought about that but my problem is that I want to access an external system that only accepts POST, if I call doPost() within doGet() it will end up with a GET method (I think....), which is not working in my case....... at least not in practice (I've just tried
As long as you are in the scope of the same request, its not possible to change the http method.
But you say you are accessing an extrenal system, right? How do you do it? You obviously cannot forward to an external system (outside your web application) from within your system. So .........any additional info?
ram.