PRJ301_-_FA_2023_-_FE_1060.webp
Haruta871

PRJ301_-_FA_2023_-_FE_1060.webp

(Choose 1 answer)
Which are the correct lines of code to get information in the following<context-param> tag in the web.xml file?
Assume that response and request refer to HttpServletResponse and HttpServletRequest respectively.
A. request.getParameter("machineName");
B. ServletConfig sc = getServletConfig():String serverName = sc.getInitParameter("machineName");
C. ServletContext sc = getServletContext();String serverName = sc.getInitParameter("machineName");
<web-app>
<context-param>
<param-name>machineName</param-name>
<param-value>cms-server</param-value>
</context-param>
</web-app>
D. response.getParameter("machineName");
Finish
Exit 27

Thông tin

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

Image metadata

Filename
PRJ301_-_FA_2023_-_FE_1060.webp
File size
50.2 KB
Dimensions
1286px x 546px

Share this media

Back
Bên trên Bottom