Tomcat 5.5.7 Configuring an APP problem

xiaoxiao2021-03-05  30

Today, I will finish the school to do it, and I will get it. But a servlet method will not be able to solve it. It turned out that I put my app directory below WebApps / root, in order to run my bean, I removed web.xml, and add . Later I got online article, I found that the app directory was not built.

Now I posted a summary:

1. To Tomcat's installation directory, you can see the directory of Tomcat's Tomcat's Tomcat, which. 2. Create a directory in the webapps directory, named myapp; 3. MYAPP new one Directory Web-INF, note, directory name is case sensitive; 4.Web-infault new file web.xml, the content is as follows: My Web Application a application for test. 5. Newly created a test-based JSP page under MyApp, file named Index. JSP, the file content is as follows:

now time is: <% = new java.util.date ()%> 6. Restart Tomcat7. Open The browser, enter http: // localhost: 8080 / myapp / index.jsp See the current time is successful.

I moved my work directory to the webapps directory in accordance with this, I created Web.xml, and put server.xml removes the JSP below the Work after the Tomcat will not be accessed. It is not possible to repeat.

I wrote it before, I wrote it before. I have to find a problem yourself.

Have a question, is it caused by the novel version of Tomcat?

转载请注明原文地址:https://www.9cbs.com/read-35002.html

New Post(0)