單項選擇題

在J2ee中,myWebApp目錄是一個Web應用程序根目錄,當在瀏覽器中輸入http://localhost:8080/myWebApp/時,會自動打開該目錄下的start.jsp文件。為了達到這個要求,需要在web.xml中添加如下代碼()。

A.<welcome-file>start.jsp</welcome-file> 
B.<welcome-file-list>start.jsp</welcome-file-list> 
C.<welcome-list>  <welcome-file>start.jsp</welcome-file> </welcome-list> 
D.<welcome-file-list> <welcome-file>start.jsp</welcome-file>   </welcome-file-list>

微信掃碼免費搜題