頁面跳轉(zhuǎn)為什么出錯
這下面兩個是兩個jsp 頁面的代碼,,請問為什么在tomcat下運行出錯了
<%@ page language="java" contentType="text/html; charset=gb2312" %>?
<html>
<body bgcolor=cyan>
<font size=5>
<%String str= request.getParameter("number");
double n=Double.parseDouble(str);%>
<p>你傳過來的數(shù)值是:</p><br />
<%=n%>
</font>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=gb2312" %>?
<html>
<body>
<%double i=Math.random();%>
?<jsp: forward page="come.jsp">
?<jsp: param name="number" value="<%=i%>"/>
?</jsp:forward>
?</body>
?</html>
報錯:
type?Exception report
message?/pages/lianxi/example2_13.jsp (line: 5, column: 6) Invalid standard action
description?The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /pages/lianxi/example2_13.jsp (line: 5, column: 6) Invalid standard action
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:275)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:91)
org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1158)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1459)
org.apache.jasper.compiler.Parser.parse(Parser.java:139)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:227)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:363)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note?The full stack trace of the root cause is available in the Apache Tomcat/8.0.32 logs.
請求解答,謝謝