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]
# 1
U can also try calling doPost() from doGet() and vice versa, and define the things in both methods, ie: doget() and dopost
mssuhaila at 2007-7-15 3:42:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
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
mvas2a at 2007-7-15 3:42:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

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.

Madathil_Prasada at 2007-7-15 3:42:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...