现在就学了 页面跳转写了个页面,第一次运行总是  直接跳转到error.jsp  并显示java.lang.NumberFormatException: null 怎么设置第一次打开,使那些jsp代码不运行<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>one.jsp</title>
</head>
<body><jsp:include page="head.txt" flush="false"/><form id="form1" name="form1" method="post" action="">
  <label></label>
  <label>
  <input type="text" name="textfield" />
  </label>
  <p>
    <input type="submit" name="Submit" value="提交" />
  </p>
</form>
<%
try
{
String s=request.getParameter("textfield");
int n=Integer.parseInt(s);
if(n>=1&&n<=50)
{
%>
<jsp:forward page="two.jsp">
<jsp:param name="num" value="<%=n%>"/>
</jsp:forward>
<%
}
if(n>50&&n<=100)
{
%>
<jsp:forward page="three.jsp">
<jsp:param name="num" value="<%=n%>"/>
</jsp:forward>
<%
}
if(n<1||n>100)
{
%>
<jsp:forward page="error.jsp"/>
<%
}
}
catch(Exception error)
{

  %>
<jsp:forward page="error.jsp">
<jsp:param name="error" value="<%=error%>"/>
</jsp:forward>
 <%
}
%>
</body>
</html>