PRJ301_-_PE_-_SP_2025_3468.webp
P

PRJ301_-_PE_-_SP_2025_3468.webp

✓ Kizspy.me
Zoom
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 (as Fugure
1) (0.5 point)
Enter coach name:
Choose an position:
Enter years of experience:
SHOW
O Goalkeeper Fitness Head
Figure 1. Interface of page
(When the web page runs, if the interface is not the same as above, will not be considered for grading)
.
Assume users fill the values into the textfields and choose a position.
When users click "SHOW" button, the browser makes a request to /show using GET method (The
Servlet is configured in web.xml) (0.5 point):
a. Check validate input years of experience: If users enter years of experience that is not an
integer number> 0, show the error text "Input years of experience is not an integer number >0!"
to servlet. (1.0 point)
b. Execute: Output the information of coach to servlet, as following. (as Fugure 2) (1.0 point)
Before clicking "SHOW" button:
Enter coach name:
Alex Ferguson
- FUO
+100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRJ301
Thêm bởi
plum_blossom
Ngày thêm
Lượt xem
5,245
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom