jstl引发的错误
HTTP Status 500 - --------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /index.jsp(2,3) Invalid directive
org.apache.(DefaultErrorHandler.java:40)
org.apache.(ErrorDispatcher.java:407)
org.apache.(ErrorDispatcher.java:88)
org.apache.(Parser.java:472)
org.apache.(Parser.java:1748)
org.apache.(Parser.java:127)
org.apache.(ParserController.java:255)
org.apache.(ParserController.java:120)
org.apache.(Compiler.java:180)
org.apache.(Compiler.java:347)
org.apache.(Compiler.java:327)
org.apache.(Compiler.java:314)
org.apache.jasper.(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.29
jsp源代码
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@tablib uri="http://java. prefix="c"%%>
<%
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>
<c:out value="一个标签示例"/><br>
<c:out value="${3+5}"> 表达示
<c:out value="<h1>这个特殊吗?"></c:out>
有特殊的字符:<c:out value="<h1> 这个特珠吗/?"></c:out>
</c:out><br>
</body>
</html>
我只是想着在页面上写上几句话 给果出错了 也不知道那里出现的问题 请大神耐心指教