Kizspy. me Question 1:
(3.0 points)
You are given a NetBeans template project (read more detail in the first page). The given project already added index.html.
Your tasks:
Edit index.html to create a web page and user can access your page via url/index.html (0.5 point)
Enter a string (str):
Choose an option: Consonant characters
EXECUTE
Options:
Consonant characters.
Length of string.
(When the web page runs, if the interface is not the same as above, will not be considered for grading)
Assume users fill the value into the textfield (called str).
When users click "EXECUTE" button, the browser makes a request to /execute using Get method (The Servlet is configured in web.xml) (0.5 point):
a. Check validate input str: If users enter str string that is empty or spaces string, show the error text "Input string is invalid!" to servlet. (1.0 noint)
Close
+ 100%
Zoom