为什么访问了老师说的那个出现了这个错误?

http://img.mukewang.com/566ec59e00011b7a19200911.jpgJAVA遇见JSP

择一城终老oh
浏览 1169回答 2
2回答

一毛钱

这个问题是你的jsp页面有问题,你把你的代码发上来。你看看是不是少些空格或者是属性值不对

择一城终老oh

<%@ 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>
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript
Java