It's been a long time, and now I'm sharing my experience.
MyEclipse 6.5 GA
Tomcat6.0 (Tomcat5.0.28)
JRE1.6
JAVA EE 5 is a very simple path,
First case: Path problem
A project has been established in MyEclipse that can be traced to C:\Program Files\apache Software foundation\tomcat 6.0\webapps\webtest
My project is called the Test,web folder called Webtestmyjsp.jsp's location is/test/webtest/myjsp.jsp
The problem now is that you can find the Web page by visiting localhost:8080//webtest/myjsp.jsp, and localhost:8080//test/myjsp.jsp can't find it.
Strangely, according to reason, the access time should be the LOCALHOST:8080//project folder/page. JSP, this cannot be accessed, but the Localhost:8080//web folder/page. JSP can access
Ask the master question solved or the path problem when I build the project, set the context root Url:/webtest I didn't notice, this one decided that the path to visit must be localhost:8080/webtest/myjsp.jsp,
If the context root url:/test can be accessed using localhost:8080/test/myjsp.jsp
Workaround: Check your path when you create a new Web project, your "context root Url:/web" setting determines what you use to access it, such as: This is the http://localhost:8080/web/ X.jsp to visit, note that the "Web" is the value following the context root URL
Second Scenario: Deployment issues
Encounter this problem is more tangled, yesterday to help students get the time is to encounter this problem, no "deployment" results every time open is not open, remember must deploy the project Oh, or how it knows you want to visit which one. Low-grade mistakes ah ...
Workaround: Point deploy MYECLIPSC Java project to server, which can be automatically deployed to the system-specified Tomcat WebApp directory