java web 的问题:Expecting "jsp:param" standard action with "name" and "value&q
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java web 的问题:Expecting "jsp:param" standard action with "name" and "value&q相关的知识,希望对你有一定的参考价值。
错误如题
代码如下:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="head.txt"/>
<title>one</title>
</head>
<body bgcolor=yellow>
<form action="" method=get name=form>
请输入1至100之间的整数:<input type="text" name="number">
<BR><input type="submit" value="送出">
</form>
<%
request.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=utf-8");
String num=request.getParameter("number");
System.out.println(num);
if(num==null)
num="0";
try
int n=Integer.parseInt(num);
if(n>=1&&n<=50)
%>
<jsp:forward page="two.jsp">
<jsp:param name="_number" value="<%=n%>"/>
</jsp:forward>
<%
else if(n>=50&&n<=100)
%>
<jsp:forward page="three.jsp">
<jsp:param name="_number" value="<%=n%>"/>
</jsp:forward>
<%
catch(Exception e)
%>
<jsp:forward page="error.jsp">
<jsp:param name="mess" value="<%=e.toString() %>"/>
</jsp:forward>
<%%>
</body>
</html>
以上是关于java web 的问题:Expecting "jsp:param" standard action with "name" and "value&q的主要内容,如果未能解决你的问题,请参考以下文章
nested exception is java.lang.VerifyError: Expecting a stackmap frame at bra
混淆导致 VerifyError: Expecting a stackmap frame
jdk7启动时报“java.lang.VerifyError:Expecting a stackmap frame at branch target”
Spring AOP表达式报错:Pointcut is not well-formed: expecting 'name pattern' at character position(
遇到问题--presto---mismatched input ‘in‘ expecting {, ‘AND‘, ‘EXCEPT‘, ‘GROUP‘, ‘HAVING‘, ‘INTERSECT‘, ‘
遇到问题--presto---mismatched input ‘in‘ expecting {, ‘AND‘, ‘EXCEPT‘, ‘GROUP‘, ‘HAVING‘, ‘INTERSECT‘, ‘