Appache Tomcat错误:404页面未找到

问题描述:

当我运行sasas.html时,出现404错误,而另一个NewFile.jsp正常运行。我已经重新启动服务器尝试5时Appache Tomcat错误:404页面未找到

enter image description here

嗨,你可以为JSP页面运行html代码.. 重命名你的HTML页面的变化sasas.htmlsasas.jsp的扩展..

并添加此指令到你的页面的顶部:

<%@ page language="java" contentType="text/html; charset=utf-8" 
    pageEncoding="ISO-8859-1"%> 

前:<!DOCTYPE html>

+0

谢谢,我做了同样的...它的工作,但为什么它happning .. ?? –

+0

我认为你的web.xml中有问题.. – 2016-03-15 10:16:21

+0

通常它甚至可以在Html页面上工作 – 2016-03-15 10:17:12