Calling the doPost in another Webapp with a Req Dispatcher forward
问题 I have 2 web apps, no front-end(i.e html/Jsp) in either. Both have one servlet each. Lets call them WebApp1/WebApp2 and ServiceServlet1/ServiceServlet2. I have 2 war files, WebApp1.war and WebApp2.war and both deployed. I call the ServiceServlet1 directly from the browser with - http://localhost:8080/WebApp1/ServiceServlet1 Obviously the doGet method will be called(POST is associated only with FORM, correct me if I am wrong). The ServiceServlet1 is build something like - public class