PRJ301_-_SP_2025_-_Block_5_-_2_3871.webp
H

PRJ301_-_SP_2025_-_Block_5_-_2_3871.webp

Kizspy | Question: 37
(Choose 1 answer)
Which of the following correct code to get information in the following <context-param> tag in the web.xml file?
<web-app>
<context-param>
<param-name>studentName</param-name>
<param-value>abcJhn</param-value>
</context-param>
</web-app>
A. request.getParameter("studentName");
B. ServletContext sc = getServletContext();
String serverName = sc.getInitParameter("studentName");
C. ServletConfig sc = getServletConfig().
String serverName = sc.getInitParameter("studentName");
D. response.getParameter("studentName");

Thông tin

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

Share this media

Back
Bên trên Bottom