jsp报错——http status 500

来源:百度知道 编辑:UC知道 时间:2024/05/29 03:06:59
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /forwardExample1.jsp(21,4) Expecting "jsp:param" standard action with "name" and "value" attributes
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.parseParam(Parser.java:827)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1665)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
org.apache.jasper.compiler.Parser.parseForward(Parser.java:868)
org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1120)
org.apache.jasper.com

<jsp:forward page="xhApp1.jsp">
</jsp:forward>

这种的改成<jsp:forward page="xhApp1.jsp"/>

message
description The server encountered an internal error () that prevented it from fulfilling this request.
消息:
描述 服务器遇到了一个内部错误,这个错误阻止完成正常的请求。

action="forwardExample1.jsp" 的书写和你的web.xml中的<servlet-mapping>不对应吧

你最好贴代码。!