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)