相关疑难解决方法(0)

/ WEB-INF中的JSP返回"HTTP状态404请求的资源不可用"

我创建了一个JSP文件.

sample.jsp

<%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
  <head>
    <title>Insert title here</title>
  </head>
  <body>
    This is jsp program
  </body>
</html>
Run Code Online (Sandbox Code Playgroud)

我把它放在samplejsp项目中.

samplejsp
 `-- WebContent
      `-- WEB-INF
           `-- sample.jsp
Run Code Online (Sandbox Code Playgroud)

我在以下网址上打开了它.

http://localhost:8080/samplejsp/sample.jsp

但它在浏览器中显示以下错误.

404错误

请求的资源(/sample.jsp)不可用.

jsp web-inf http-status-code-404

7
推荐指数
1
解决办法
7417
查看次数

标签 统计

http-status-code-404 ×1

jsp ×1

web-inf ×1