This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
i donno if there is any way to do that.. but u can achieve this by doing one thing.. that is.. write both the methods (i.e. doGet and doPost) in your servlets and in doGet() you can call doPost like following.
i hope by this ur problem will be solved... do let me know if still in doubt. Thanks Amit
****************************<br />In 24 hrs Earth rotates once on its Axis.
You can directly forward the request to another servlet. The servlet to which you direct the request should contain the doPost method.it is as simple as this. kinldy let me know if there are any corrections. good luck.
Note that a request has a method already, in the very first header. Simply forwarding a GET can't change it into a POST. RFC2616 lays out the rules for HTTP requests - a Yahoo search will find you a copy. Your servlet could create a new POST request, send it, and then interpret the result to create a response, and there are other approaches. For example, you might be able to create a HttpServletRequestWrapper to be forwarded (but I have not tried this). Bill [ November 03, 2003: Message edited by: William Brogden ]