Static and dynamic web project

In the Eclipse web project into a Dynamic Web Project and Static Web Project.

The two then what difference does it make?

In fact, here's Dynamic and Static are distinguished by page. Create static pages can only be called on a static web project, and page creation is dynamic (data change) is called dynamic web project.

 

1. Static Web Project

Create a Web projectfor static content (HTML files) only

Creating static content page with all the things that are written dead. The equivalent of our prototype map like.

 

 

 

 

Created a static web project, can only create the page file, can not create java or other programming language file, simply click on it to see, you do not need to run the vessel.

2. Dynamic Web Project

    Some things pages can be dynamic, such as some java jsp page code or data binding and so some of these pages need to run the specified container (Tomcat, Jboss, etc.) web running

After the creation of dynamic web project directory structure

 

 

 dynamic web project is an Eclipse project, there are corresponding static web project, the former refers to dynamic web project, contains some dynamic code, such as java; and static web project files only contain static pages.

 

MyEclipse for Eclipse has been extended, such as: web project can add some open source framework support, such as Struts, Hibernate and so on. In other words, web project after project Myeclipse extension, and dynamic web project is Eclipse's own classification, in the Myeclipse, web project with a dynamic web project has some of the characteristics to facilitate the development and integration capabilities.

 

The difference between dynamic pages and static pages?

(1)在企业进行网站建设的时候,由于使用了不同的技术,网站的页面一般都会存在两种形式 :静态页面与动态页面 ,那么静态页面与动态页面的区别在哪呢?要了解这两者之间的区别,首先要了解什么是静态页面与动态页面?运行在客户端的程序、网页、插件、组件,属于静态网页,例如:html,javascript等等,他们可以脱离服务器运行于浏览器客户端。静态页面与动态页面区别?运行在服务器端的程序、网页、组件,属于动态网页,例如:JSP,ASP,PHP等,它们会随不同客户、不同时间,返回不同的网页。

(2)那么这两者到底有什么区别呢?

【1】:动态网页相比静态网页的交互性更高,可以实现更多的功能,如用户注册、登录等一系列用户需要与网站发生互动的功能基本都需要由动态网页来满足。

【2】:动态网页不是一个独立存在服务器上的网页,当用户发送请求时,服务器可能还要拼凑其他元素才会返回一个完整的网页,而静态网页一旦上传到服务器上,就是实实在在保存在服务器上的网页文件。

【3】:静态网页的内容相对稳定,URL地址相对于动态网页的更加容易被搜索引擎识别,所以网站进行SEO优化的时候一般都是建议采用静态网页。

【4】:静态网页无需数据库的支持,所以访问速度上较之动态网页比较快,不过随着浏览器以及宽带速度提升,这种差别会越来越小。

【5】:静态页面虽然不用访问数据库,缓解了服务器的压力,但是随着网站内容越来越多,占用服务器的空间也会越来越多,而动态网页则对服务器的性能要求较高。总之而言,静态网页适合更新较少的网站,一般适用于展示型的网站,而动态网页则更新较多,一般用于用户互动较多的网站。

Guess you like

Origin www.cnblogs.com/vole/p/12121016.html