11
回答
jsp页面问题 急用帮忙解决一下吧
极速云服务器,低至1.04元/天>>>   

jsp//

<%@ page language="java" contentType="text/html" import="java.util.*" pageEncoding="utf-8"%>
<html>
 
   
    <title>例子</title>
    <style>
    <jsp:include package="style.css flush="true""/>
    </style> 
  <body>
<h1>接受请求信息</h1>
<table cellspacing="1" cellpadding="5">
<%
Enumeration Names=request.getHeaderNames();
while(Names.hasMoreElements())
{String name=(String)Names.nextElement();
String value=request.getHeader(name);
 %>
 <tr>
 <td><%=name%></td>
  <td><%=value%></td>
 
 </tr>
 <%
 }
  %>
</table>
  </body>
</html>
运行结果:

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(7,47) equal symbol expected
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
	org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:200)
	org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:155)
	org.apache.jasper.compiler.Parser.parseInclude(Parser.java:869)
	org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1136)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1466)
	org.apache.jasper.compiler.Parser.parse(Parser.java:138)
	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
	org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	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.18 logs.

 

JSP
举报
小鸡快跑
发帖于6年前 11回/1K+阅
顶部