Notes for developing Java Web applications using eclipse

Source: Internet
Author: User

1,

<% @ Taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "C" %>

In the past, it was no problem to use the above sentence in myeclise to add labels, but eclipse is not good. It should be due to the lack of jstl. jar and standar. Jar. myeclipse is automatically added, so no error is reported and cannot be found.

The two jar packages can be copied in the Tomcat Example project.

2,

A new servlet is created, indicating that javax. servlet. http. * cannot be found .*

To add a target environment (targeted runtimes) for Eclipse, right-click the project --> properties --> select targeted runtimes to add an environment

3,

How can I publish a development project to the server?

Right-click the project and run as -- run on server to select an existing server or create a new one. Then, click the run button (green triangle.

Eclipse does not need to be manually deployed (released). After each file is modified, the server automatically updates the file (after you press save, you can see that the server interface has republish ..)

4. directory structure

The project has the following structure (by default ):

Deployment descriptor

Java Resources

+ -- SRC (source code)

+ -- Libraries (referenced jar package)

Javascript resources (not studied)

Build (class file placed after project compilation)

Webcontent (equivalent to webroot in myeclipse)

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.