单项选择题
在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>
相关考题
-
单项选择题
在J2ee中,在、mySample.java中包含代码: System.out.println((InetAddress.getByName("aaaa")).getHostAddress()),但在网络上没有 aaaa这台主机。那么该行代码会()。
A.编译运行后什么也不显示
B.编译运行后显示“aaaa”字符文本
C.编译不能通过
D.编译运行后会跑出java.net.UnknownHostException异常 -
单项选择题
在Java中,下列代码段允许按钮注册一个action时间的是()
A.button.enableActionEvents();
B.button.addActionListenser(anActionListener);
C.button.enableEvents(true);
D.button.enableEvents(AWTEvent.ACTTION_EVENT_MASK) -
单项选择题
在J2ee中,以下各项中,()正确阐述了创建InputStreamReader的方式。
A.new InputStreamReader(new FileInputStream("data"));
B.new InputStreamReader(new FileReader"data"));
C.new InputStreamReader(new BufferedReader("data"));
D.new FileInputStream("data")
