简体   繁体   English

Eclipse中Java Web应用程序的结构

[英]Structure of a Java Web Application in Eclipse

I have developed various Java EE web-applications in Netbeans by selecting webapplication as the project type. 通过选择webapplication作为项目类型,我在Netbeans开发了各种Java EE Web应用程序。

Now, I want to start coding a web-application in Eclipse . 现在,我想开始在Eclipse对Web应用程序进行编码。 The application will be based on Struts framework. 该应用程序将基于Struts框架。

The structure of the project created by Netbeans and Eclipse are different. NetbeansEclipse创建的项目的结构不同。

Q1. Q1。 What project type I should choose for the above application in Eclipse ? 我应该为Eclipse的上述应用程序选择哪种项目类型? I chose DynamicWebApplication as the project type. 我选择DynamicWebApplication作为项目类型。

Q2. Q2。 Which project structure to use for the web-application? Web应用程序使用哪种项目结构?

The project structures are arbitrary - as chosen by the IDE developers. 项目结构是任意的-由IDE开发人员选择。

DynamicWebApplication is a fine choice for web-app. DynamicWebApplication是Web应用程序的不错选择。

Leave it to the IDE to form your structure and subsequently automate the build process. 将其留给IDE形成您的结构,并随后自动进行构建过程。

However, I'd suggest another option for structure & build process - Maven2 - it imposes a different structure, but provides easy dependency and build management. 但是,我建议结构和构建过程的另一种选择-Maven2-它具有不同的结构,但提供了容易的依赖性和构建管理。

您可以选择DynamicWebApplication作为您的项目类型

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM