Calling Servlet Post from another Servlet

后端 未结 3 1043
孤城傲影
孤城傲影 2021-01-12 19:17

I need to call a servlets POST method from another servlet and pass a blob in the servlets parameters. Is this posible, if so how can it be done. PS: I cant use Apache HttpC

3条回答
  •  半阙折子戏
    2021-01-12 20:15

    Do you mean call from your application to another web service? If so, then something like HttpClient is what you want. If you mean you want to programmatically invoke another servlet in your app, then you're looking to either forward to it or include it.

提交回复
热议问题