为何我写出的JSP文件在Tomcat中打开之后没有错误,但全是源代码
<%@pagelanguage="java"import="bean.Person"pageEncoding="GB2312"%><%@pagecontentType="...
<%@ page language="java" import="bean.Person" pageEncoding="GB2312"%>
<%@ page contentType="text/html;charset=GB2312" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>person</title>
</head>
<body>
This is person
</body>
</html>
如上,jsp代码如此,在浏览器中打开亦如此 展开
<%@ page contentType="text/html;charset=GB2312" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>person</title>
</head>
<body>
This is person
</body>
</html>
如上,jsp代码如此,在浏览器中打开亦如此 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询