Can Struts 2 run on Apache2 server without Tomcat?
Please help! I got very frustrated with this assignment to demonstrate Apache and Java Struts. I cannot make struts apps run in the Apache web directory. They only work under Tomcat.开发者_JS百科
Can I use Struts only under Apache without Tomcat? ... Thanks very much!
Apache and Tomcat serve different purposes. You cannot use Apache to run Struts because it's just a web server, not a java web container.
What you could do is to setup Apache as a reverse proxy to a tomcat instance, so the "Internet" would talk to your Apache, but still Tomcat would be serving your requests in the end.
精彩评论