PRJ301_-_FE_-_SU_2023_407.webp
sweet_heart

PRJ301_-_FE_-_SU_2023_407.webp

(Choose 1 answer)
Consider the code shown in the exhibit for the init() method of a HTTP servlet.Which of the following LOC "may" correctly retrieve the DBURL parameter at //1?(Assume that servletcontext is a reference to ServletContext for this servlet.) (Choose one)
public void init()
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// 1 Get DBURL here
theConnection = DriverManager.getConnection(dbUrl, "admin", "admin");
}
A. this.getInitParameter("DBURL");
B. this.getParameter("DBURL");
C. this.getContextParameter("DBURL");
(29)

Thông tin

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

Image metadata

Filename
PRJ301_-_FE_-_SU_2023_407.webp
File size
66.2 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom