试题详情
单项选择题在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>

  • D
  • 关注下方微信公众号,在线模考后查看

热门试题