<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html >
<html>
<%! int i=0; %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<% String strColor=request.getParameter("color");
if(strColor==null)
{
strColor="white";
}
%>
<body bgcolor=" <%= strColor%> ">
<form>
color:<input type="text" name="color" />
<input type="submit" text="ok" />
</form>
<hr>
<%
++i;
out.println(i);
%>
</body>
</html>