Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What about the 404 error of JSP program?

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you the "JSP procedure 404 error how to do", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "JSP procedure 404 error how to do" this article.

When did the error of JSP program 404 occur? When we request a resource on the server through the browser, it may be JSP or Servlet. If the resource to be accessed does not exist, it may generate a 404 error. The JSP program 404 error may be the problem of the application itself, such as no normal deployment, wrong name, or file problem, JSP file does not exist, name error, or Servle is not configured.

Based on these conditions, the solution to the error in JSP program is as follows:

1. The web application is not deployed successfully: from the console (http://127.0.0.1:7001/console) 's deployments), pay attention to the status. If the deployment is not successful, you can go to the console (the command line window that starts the server) to check for errors. If you use Tomcat, use http://127.0.0.1:8080, and then select the administrative interface.

2. The name of the Web application (actually the access method, usually context-root), the viewing method: right-click on the project, select "Properties", select MyEclipse à Web, Web Context-root in the interface.

3. The name of the resource (JSP and servlet)

If it is a JSP file, look carefully to see if the name of the file is misspelled. (when developing in MyEclipse, JSP files are placed in web-root and cannot be misplaced. If there are other folders, the folder should be written out in the access method.) if there are no errors, check carefully whether other files are accessed through access methods such as jsp:forward or jsp:include, to see if other files exist.

If it is Servlet, check the web.xml document:

< servlet-mapping > < servlet-name > LoginServlet < / servlet-name > < url-pattern > / login < / url-pattern > < / servlet-mapping >

The content of url-pattern determines the access method.

If there is nothing wrong with the configuration of this Servlet, check to see if other files are accessed in the Servlet file and to see if the accessed files exist.

4. If there are none of the above errors, it may be the cache problem of the system, including the temporary files of the client browser and the server. Solution: restart the browser, recompile the project (Project Clean), redeploy, shut down the application server, restart the application server, and revisit.

The above is all the contents of this article "what to do with errors in JSP Program 404". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report