It all depends on the original request type. forward() forwards the request from one servlet to another. If the request was a POST request doPost() will get called on both, if it was a GET request doGet() will get called on both.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com