Hi

Can you help me make the following app:

Requirements for the job :
Both sides will be generated from JSP (although one is static ) should be used MVC ( ie, each side must also have a controller ) It shall not be possible to go directly to the JSP pages from the browser should be used only HTTP GET :

o The form appears with GET / form

o The result is calculated and displayed with GET / result? aar = ...

The application must be robust against various types of input :

o aar null = > it will redirect to the form

o aar is empty or contains only blank = > ' You must enter a year "

o aar is not a number = > "The year must be a number "

o aar (eg . 1500 ) is not valid year = > " 1500 is not a valid year "

o aar (eg . 2012) is a leap year = > " 2012 is a leap year "

o aar (eg . 2013) The Not So a leap year = > " 2013 is not a leap year "

The calculation of whether it is leap year should be thoroughly tested unit with JUnit .

Rules for leap year calculation can be found on the web. What is important is that you unit test calculations properly. If you try with a year before 1582 shall be disposed of except a leap year .

Has the following index.jsp :




<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title> Leap Year Calculator   </title>
	</head>	
	<body>		
		<h1> Leap Year Calculator </h1>
		<form action="IndexServlet">			
			 Year: <br>
			<input type="text" name="aar"size="20px">
			<input type="submit" value="Calculate">						
		</form>		
	</body>	
</html>

Thank you in advance !