2 回答

TA貢獻(xiàn)156條經(jīng)驗(yàn) 獲得超57個(gè)贊
這個(gè)問(wèn)題是你的jsp頁(yè)面有問(wèn)題,你把你的代碼發(fā)上來(lái)。你看看是不是少些空格或者是屬性值不對(duì)

TA貢獻(xiàn)1條經(jīng)驗(yàn) 獲得超0個(gè)贊
<%@ page language="java" import="java.util.*"contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
? <head>
??? <base href="<%=basePath%>">
?? ?
??? <title>My JSP 'index.jsp' starting page</title>
?? ?<meta http-equiv="pragma" content="no-cache">
?? ?<meta http-equiv="cache-control" content="no-cache">
?? ?<meta http-equiv="expires" content="0">?? ?
?? ?<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
?? ?<meta http-equiv="description" content="This is my page">
?? ?<!--
?? ?<link rel="stylesheet" type="text/css" href="styles.css">
?? ?-->
? </head>
?
? <body>
??? <h1>JSP生命周期</h1>
? </body>
</html>
添加回答
舉報(bào)