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

萝らか妹 提交于 2020-06-29 12:02:12

问题


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)?

回答1:


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.



来源:https://stackoverflow.com/questions/32444495/how-to-setup-struts2-within-existing-eclipse-by-maintaining-other-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!