student.html
<html>
<body>
<form method=get action="Student.jsp">
<fieldset>
<legend>Enter Student Details...!!!</legend>
Enter Roll No :            <input type=text name=rno><br><br>
Enter Student Name:  <input type=text name=sname><br><br>
Enter Gender:             <input type=text name=gen><br><br>
Computer Knowledge:<input type=text name=ckn><br><br>
Enter Class:                  <input type=text name=cl><br><br>
</fieldset>
<div align=center>
<input type=submit value="Save">
</div>
</form>
</body>
</html>
student.html
<html>
<body>
<%@ page import="java.io.*;" %>
<%! int rno;
String name,gen,ckn,cl; %>
<%
try {
rno=Integer.parseInt(request.getParameter("rno"));
name=request.getParameter("sname");
gen=request.getParameter("gen");
ckn=request.getParameter("ckn");
46 cl=request.getParameter("cl");
out.println("Roll No: "+rno+"<br>");
out.println("Name : "+name+"<br>");
out.println("Gender :"+gen+"<br>");
out.println("Comp Knowledge : "+ckn+"<br>");
out.println("Class :"+cl+"<br>");
}
catch(Exception e)
{
out.println(e);
}
%>
</body>
</html>