The difference between Dynamic Web project and Web project in Java [go]

Source: Internet
Author: User
Tags apache tomcat

Original address: http://blog.sina.com.cn/s/blog_46726d2401013jlk.html

Article framework:

1.Dynamic Web Project Concepts

What is the difference between a Dynamic Web project in 2.eclipse and a Web project in MyEclipse

3. Dynamic operating principles and directory structure---whether it involves the technology of generating tables from a class (if not, you should also figure this out)

4, how to set up server?

5. How to build a dynamic web? To know the role of each configuration file

6. Familiar with Auction project

------------------------------------------------------------------------------------------

1.Dynamic Web Project Concepts

If you want to create a content-based WEB application This does not contain any dynamic content (such as Servlets, JSP fil ES, filters, and associated metadata) you might prefer to create a static Web project, as opposed to a dynamic Web project .

This is online in English:

The effect is:

If you want to build a project that doesn't include dynamic content such as: (Servlets, JSP files, filters, and ssoicated metadata), create a static Web project or create a Dynamic Web project

Thus, the dynamic Web is a Web project that contains dynamic data that interacts with the database, and does not match the static site.

What is the difference between a Dynamic Web project in 2.eclipse and a Web project in MyEclipse?

To understand the difference between the two, we must first understand the difference between eclipse and MyEclipse.

Eclipse is an open source project that can be used in a variety of language development, as long as you install its plug-in can be, MyEclipse is the Eclipse plug-in, Java Web project development, in the early version of MyEclipse, It was installed with Eclipse to install MyEclipse, but the latest version integrates eclipse.

Eclipse does not install MyEclipse can also do web development, a lot of plug-ins can replace Myeclipse,myeclipse is just a more complete, better one plug-in.

MyEclipse is a development tool based on Eclipse, which integrates some plugins and makes some of its own development.

Using MyEclipse to develop the Java EE program will be more convenient. But it's not free, but it's not very expensive.

Eclipse is an essential plugin for developing the necessary ide,myeclipse

Dynamic Web project is a taxonomy that comes with Eclipse, and Web project is a MyEclipse extended project

The structure of 3.Dynamic Web project projects and the techniques for generating tables from entity classes

Configuration files in the source code package:

Configuration files in the toolkit

4. How do I build a server?

New--other---server, select TOMCAT6, configure the environment such as d:/tomcat6.0, you can click Next to link the Web project, and finally click Finish

5. How to build a dynamic Web Project, and how to debug

In eclipse, you can do a dynamic web Project in the new web.

The Dynamic Web project of Eclipse itself is similar to MyEclipse Web project, and if you create Dynamic Web project in MyEclipse, you need to check show all when creating a new project. Wizards:

Similar to creating other projects, or from File->new->other->web->dynamic Web project,

Fill in the relevant information for the project. In this interface there is a project contents, the default is under your workspace, you can also choose any other location, or the existing file.

Note here that if you are using MyEclipse Web project, the value of content directory defaults to Webroot and you need to change to webcontent because our scripts are written in WebContent.

When you click OK, the following warning box may pop up asking if you want to switch to the Java EE view associated with the project type. The so-called simple view is the combination of view.

Project creation This is done, in the left side of the project bar will appear the following (the specific display and you are in what view is related, the diagram is navigator under the display form)

You can also modify the relevant configuration of the project according to your habits, I am accustomed to the Java files compiled into webcontent\web-inf\classes, this you can click on the Source tab, modify the default output folder content. Also note in Apache Tomcat v6.0 This is a bunch of jar packages that are introduced by the server, while Web App libraries refers to all the jar packages under Webcontent/lib under your project when you are in webcontent/ When adding a new jar under LIB, you don't need to add jars yourself.

You can run the project in Eclipse by right-clicking on the project root and then run as and selecting run on server.

6. How to Debug

After you have created server and dynamic Web project, debug your Java code as long as you choose Debug as when you run the project, and in another way, Remote Java project.

This way, we need to write a script to Tomcat.

Debug.bat

SET Catalina_opts=-server-xdebug-xnoagent-djava.compiler=none-xrunjdwp:transport=dt_socket,server=y,suspend=n, address=5888 Call Startup.bat

The difference between Dynamic Web project and Web project in Java [go]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.