<form id="sform" action="<%=request.getContextPath() %>/Info1Servlet?operate=1" method="post">
問好後面可以增加你要的參數,不要的話就去掉
<form id="sform" action="<%=request.getContextPath() %>/Info1Servlet" method="post">
info1Servlet:是你在web.xml檔案配置的路徑名
request.getRequestDispatcher("/工程名/student/info/info1.jsp ").forward(request, response);