Enter number1:
Enter number2:
Execute
Your tasks: When users click "Execute" button, the browser makes a request to /exe using Post method (The Servlet is configured in web.xml) (0.5 point):
a. Check input the integer number for two texts (>0):
- If input texts are empty, show the error text "You must input texts" to servlet. (0.5 point)
- If users input a value is not an integer number > 0, show the error text "You must input an integer > 0"to servlet. (0.5 point)
b. Find positive integers that are common divisor of two integers numberl and number2, then output the result to servlet (Example: number1-2 and number2-6 output: 1 2). (1.0 point)
Question 2:
(2.5 points)
You are given a NetBeans template project (read more detail in the first page). The given project already added MyExam.jsp and start running from this page.
Your tasks
Edit MyExam.jsp as follows: (If the interface is not edited according to the exam requirements,the remaining parts will not be graded)
+ 100%
Zoom
DI AVED INFORMATION
Close