求各位大侠帮忙看看
我是个JSP新手,请各位看看这是什么错误
1:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /appletExample.jsp(7,2) The end tag "</jsp:" is unbalanced
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:132)
org.apache.jasper.compiler.Parser.checkUnbalancedEndTag(Parser.java:1570)
org.apache.jasper.compiler.Parser.parseElementsTemplateText(Parser.java:1554)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1667)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
org.apache.jasper.compiler.Parser.parseFallBack(Parser.java:1065)
org.apache.jasper.compiler.Parser.parsePluginTags(Parser.java:1102)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1632)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
org.apache.jasper.compiler.Parser.parsePlugin(Parser.java:1086)
org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1140)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1448)
org.apache.jasper.compiler.Parser.parse(Parser.java:133)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:215)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.10 logs.
code:
<%@ page contentType="text/html;charset=gb2312"%>
<html>
<body>
<jsp:plugin type="applet" code="Blink.class" jreversion="1.2" width="200" height="260">
<jsp:fallback>
浏览器不支持
</jsp:plugin>
</body>
</html>
2:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /forwardSample.jsp(23,6) 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.compiler.Parser.parseElements(Parser.java:1448)
org.apache.jasper.compiler.Parser.parse(Parser.java:133)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:215)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.10 logs.
code:
<%@ page contentType="text/html;charset=gb2312"%>
<html>
<body>
<form name="form1" action="forwardSample.jsp" method="post" >
程序实例链接:
<select name="goaddress" onchange="javascript:form1.submit()">
<option value="0">无</option>
<option value="1">计数器</option>
<option value="2">数组</option>
<option value="3">分支结构</option>
</select>
</form>
<%
String s = null ;
s=request.getParameter("goaddress") ;
if(s!=null)
{
switch(s.charAt(0))
{
case '1':
%>
<jsp:forward page="simpleCounter.jsp">
</jsp:forward>
<%
break ;
case '2':
%>
<jsp:forward page="array.jsp">
</jsp:forward>
<%
break ;
case '3':
%>
<jsp:forward page="SwitchApp.jsp">
</jsp:forward>
<%
break ;
default:
out.println("未选择");
}
}
else
out.println("请选择") ;
%>
</body>
</html>