单项选择题
Struts应用程序的默认配置文件为()
A.Struts-config.xml
B.web.xml
C.Ejb-jar.xml
D.Sun-web.xml
点击查看答案&解析
相关考题
-
单项选择题
在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-file><welcome-file> start.jsp</welcome-file> </welcome.-file>
D.<welcome-file-list><welcome-file> start.jsp </welcome.-file></welcome-file-list> -
单项选择题
Servlet服务结束,servlet会调用()方法释放资源
A.free(0)
B.free(ServletConfig config)
C.destroy
D.destroy(ServletConfig config) -
单项选择题
在j2ee中,在mysample.java中包含代码:system.out.println(InetAddress.getByName(“aaaa”)).getHostAddress()),但在网络上没有aaaa这台主机。那么该行代码会()
A.编译运行后什么都不显示
B.编译运行后显示“aaaa”字符文本
C.编译不能通过
D.编译运行后会抛出java.net.UnlnownHostExceptioon异常
