i have a form with two fields. one is string and other int. than if user hit submit button than i am checking to see if there are errors. 1st error is if string is empty. 2nd error is if int field is empty. this is where i need help. i dont know how to check if int field is empty or not.

Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	

     <form method="post" action="index.jsp">
		what's your name?<br/>
		<input type="text" name="usernameField"/><br/>
		what's your aga?<br/>
		<input type="text" name="ageField" /><br/>
		<input type="submit" name="submit" />
	</form>
	<%
		if (request.getParameter("submit") != null) {
			
			String username = request.getParameter("usernameField");
			
			int number1 = Integer.parseInt(request.getParameter("ageField"));
	
			//check errors
			if(username.equals(""))
			{
				out.print("Error enter name");
			}
			else if(number1 == 0)  //help here
			{
				out.print("Error enter age");
			}
			else
			{
				out.print("answer" + number1);
			}
		}
	%>
	
</body>
</html>

already tried these things but didnt worked:
Code:
int number1 = Integer.parseInt(request.getParameter("ageField"));

 if(request.getParameter("ageField").equals(""))
  if(request.getParameter("ageField") == null)
   if(number = null)