Re: User same HttpServletResponse object in doGet and doPost
Posted By:
Anonymous
Posted On:
Thursday, December 6, 2001 06:53 AM
I'm not sure what you are trying to do, and I think you don't don't understand clearly the difference between doGet and doPost. There is none, except for the fact that one is called and the method used is Get and the other when Post is used. Most servlets do the same treatment for both methods, and call a common method, passing the request and the response. If your servlet can be called by your client and your provider, use a parameter to determine who is invoking your servlet, or do two different servlets.