eclipse eclipse中静态和动态web项目的区别

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13081653/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 21:23:40  来源:igfitidea点击:

Difference between static and dynamic web project in eclipse

eclipse

提问by user1357722

Is there any difference between static and dynamic projects in eclipse 3.x.when it will be use static project?

eclipse 3.x.when 将使用静态项目时,静态项目和动态项目有什么区别吗?

回答by sunleo

In static web project, you will not have Java, servlets and JSP etc. (server side scripts). You can only have HTML, JavaScript etc.

在静态 Web 项目中,您将没有 Java、servlet 和 JSP 等(服务器端脚本)。你只能有 HTML、JavaScript 等。

Please check the link below, it will help you:

请检查下面的链接,它将帮助您:

http://www.velvetblues.com/web-development-blog/what-is-the-difference-between-static-and-dynamic-websites/

http://www.velvetblues.com/web-development-blog/what-is-the-difference-between-static-and-dynamic-websites/

回答by Ashu

Static Web Projectis written entirely using HTML. Each web page is a separate document and there are no databases or external files that are drawn upon. means that you can edit any web page using FrontPage Editor, Dreamweaver or pay your web developer to make updates for you.

静态 Web 项目完全使用 HTML 编写。每个网页都是一个单独的文档,没有使用数据库或外部文件。意味着您可以使用 FrontPage 编辑器、Dreamweaver 编辑任何网页,或者支付您的 Web 开发人员为您进行更新。

Dynamic Web Projectare builds upon more complex code like PHP, ASP, JSP, Servlet java file etc. in this project server side coding. You should select Dynamic web projectto get more benifits.

动态 Web 项目建立在更复杂的代码上,如 PHP、ASP、JSP、Servlet java 文件等,在这个项目服务器端编码。您应该选择动态 Web 项目以获得更多好处。

回答by bmck

Dynamic and static. Dynamic web projects can contain dynamic Java EE resources such as servlets, JSP files, filters, and associated metadata, in addition to static resources such as images and HTML files. Static web projects only contains static resources. When you create Web projects, you can include cascading style sheets and JSP tag libraries (for dynamic Web projects), so that you can begin development with a richer set of project resources.

动态和静态。除了静态资源(例如图像和 HTML 文件)之外,动态 Web 项目还可以包含动态 Java EE 资源,例如 servlet、JSP 文件、过滤器和关联的元数据。静态 Web 项目仅包含静态资源。创建 Web 项目时,您可以包含级联样式表和 JSP 标记库(用于动态 Web 项目),以便您可以使用更丰富的项目资源集开始开发。

For more : http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.wst.webtools.doc.user%2Ftopics%2Fccwebprj.html

更多信息:http: //help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.wst.webtools.doc.user%2Ftopics%2Fccwebprj.html