用jsp粗略统计网页访问人数并打印出访问的名字

用jsp统计网页访问人数
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<form action="count.jsp" method="post" >
<p>请输入姓名:</p>
<input id="name1" type="text">
<button type="onsbmit">提交</button>
</form>
</body>
</html>


<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<%
StringBuffer visitor=new StringBuffer();

int count = 0;

String name = new String(request.getParameter("name1").getBytes("ISO8859-1"),"gb2312");


if (name.length()==0){
%>
<jsp:forward page="SY-3.jsp">
<%
}
else{
    count++;
    visitor.append(name);
    }
%>
<p>
总共有<%=count %>人浏览了本页面,他们分别是:<br><%=visitor %>
</p>



运行结果及报错内容

运行完之后,报500错误:

img

我的解答思路和尝试过的方法

检查了代码没有任何问题,报错行是21,但21行什么也没有

我想要达到的结果

可以完成网页的跳转,实现我自己的想要达到的结果

Expecting "jsp:param" standard action with "name" and "value" attributes错误:提示你jsp:标签语法的问题,注意换行那些格式
参考:
https://www.cnblogs.com/FANKIKI/p/7497502.html
https://www.cnblogs.com/alphajuns/p/11867193.html