To enable Struts (or similar framework/library) support, create a Dynamic Web Project and enable the framework specific facets. You can also create Enterprise Application Project, add dynamic web project to it. And then enable various facets.
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