How to setup Struts2 within existing Eclipse by maintaining other configuration?

I am a novice programmer in using Apache Struts 2 MVC Framework.I want to setup Struts 2 within my existing Eclipse IDE and I don’t want to harm other different works i do in eclipse. Here is a list of things i do in eclipse and other related works:

  1. I am currently using eclipse ide for java SE developers.
  2. Already using PDT: Eclipse PHP Development within existing eclipse for php projects.
  3. Also using Eclipse CDT:C/C++ Development Tool within existing eclipse.
  4. My computer contains LAMP installed with Apache2 server for web development purpose.

So, I want keep all of these things intact while setting up Struts 2 within existing eclipse. I’ve seen many installation guidelines for Struts 2, but they didn’t clarify well about situation similar to mine.Therefore, before full installation, i want answers of these questions below:

  1. Can I install Struts 2 in eclipse IDE for java SE (not EE) developers ?
  2. Installing Struts 2 requires Apache Tomcat installation, will this installation create any conflict with my existing Apache 2 server (which comes with LAMP)?


Yeah, you need Eclipse for Java EE and Tomcat web server installed. There you can create a dynamic web project and use Maven to manage artifacts and download dependencies. See how to Create Struts 2 Web Application With Artifacts In WEB-INF lib and Use Ant To Build The Application

Tomcat server by default uses port 8080, but Apache uses 80, unless you use the same port for both they won’t conflict.

Leave a Reply

Your email address will not be published. Required fields are marked *