没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
NIIT MVC4 试题册 01
1. What is the HTTP Status error code HTTP response ‘Not Found’?
A. 200 B. 304 C. 404 D. 405
2. Which one of the following is the default HTTP port?
A. 100 B. 80 C. 8080 D. 8888
3. Which of the following acts as a model which implements the business logic of the web
application?
A. A servlet B. A JSP page C. Java technology classes D. HTML
4. With reference to the codes in web.xml regarding the Datasource reference:
<resource-ref>
<description></description>
<res-refname>jdbc/myDB<resref-name>
<res-type>java.sql.DataSource</res-type>
<res-auth>container<res-auth>
</resource-ref>
Find the error in this code.
A. <resource-ref>
<description></description>
<res-ref-name>jdbc/myDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>container</res-auth>
</resource-ref>
B. <resource-ref>
<description></description>
<res-ref-name>jdbc/myDB<res-ref-name>
<res-type>java.sql.DataSource<res-type>
<res-auth>container<res-auth>
</resource-ref>
C. <resource-ref>
<description></description>
<res-refname>jdbc/myDB<res-refname>
<res-type>javax.sql.DataSource<res-type>
<res-auth>container</res-auth>
</resource-ref>
D. <resource-ref>
<description></description>
<res-ref-name>jdbc/myDB<res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>container</res-auth>
</resource-ref>
5. What will be the code for locating a Datasource named myDB through JNDI context named
1/7
NIIT MVC4 试题册 01
mycontext?
A.Context mycontext=new InitialContext();
DataSource ds=(DataSource)mycontext.lookup(“java:comp/env/jdbc/myDB”);
B. Context mycontext=new Context();
DataSource ds=(DataSource)mycontext.lookup(java:comp/env/jdbc/myDB);
C. Context mycontext=new InitialContext();
DataSource ds=(DataSource)mycontext.lookup(java:comp/env/jdbc/myDB);
D. Context mycontext=new InitialContext();
DataSource ds=mycontext.lookup(“java:comp/env/jdbc/myDB”);
6. Which of the following JSP pages implicit variable represents the Throwable object that was
thrown by some other JSP page?
A. application B. out C. exception D. config
7. Which of the following JSP page implicit variable represents the ServletConfig object
associated with the servlet for this JSP page?
A. application B. out C. exception D. config
8. You are using JSP scripting elements that are processed by the JSP engine during the translation
of the JSP page. Which of the following scripting elements lets you include members in the JSP
servlet class either attributes or methods?
A. Directive Tag B. Declaration Tag C. Scriplet Tag D. Expression Tag.
9. You are using JSP scripting elements that are processed by the JSP engine during the translation
of the JSP page. Which of the following scripting elements lets the JSP page developer include
arbitary Java technology code in the _jspService method?
A. Directive Tag B. Declaration Tag C. Scriplet Tag D. Expression Tag.
10. You want to turn off scripting as well as ignore EL in JSP file while configuring the JSP
environment. What would be the code for this?
A. <jsp-config>
<jsp-property-group>
<url-pattern>/scriptting_off/*</url-pattern>
<scripting-invalid>true</scripting-invalid>
</jsp-property-group>
<jsp-property-group>
<url-pattern>/EL_off/*</url-pattern>
<el_ignored>true</el_ignored>
</jsp-property-group>
</jsp-config>
B. <jsp-property-group>
<url-pattern>/scriptting_off/*</url-pattern>
<scripting-invalid>true</scripting-invalid>
</jsp-property-group>
2/7
剩余6页未读,继续阅读
资源评论
- ZLH_00002013-02-20不要拘泥于答案。
- sand_9110082012-11-12题量还行,有些貌似答案不对……
- 长笛党希望2013-03-12题量还是少了点,质量不错。
- j2eetask3002012-08-08题量能再多一点就好了
烟波浩瀚
- 粉丝: 0
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功