0

0

jsp在线考试系统-htm文件_MySQL

php中文网

php中文网

发布时间:2016-06-01 14:08:23

|

1408人浏览过

|

来源于php中文网

原创

  一个在线考试系统,测试你的jsp知识,代码不是特别多,所以不加注释了(http://jspbbs.yeah.net)

index.jsp







JSP Professional, Chapter 12
Quiz


by Dan Malks






Duke

The HREF="/developer/Books/jsp/index.html">JSP Professional: Chapter 12, JSP
Archictecture
Test your knowledge on the differences between servlets
and JSP, Factor Forward-Factor Back, page-centric verses the dispatcher
approach, and more.











  1. Choose the statement
    that best describes the relationship between JavaServer
    PagesTM (JSPTM)
    and servlets:












    TYPE="RADIO" VALUE="A">  A.
    Servlets are built on JSP semantics and all servlets are compiled to JSP
    pages for runtime usage
    TYPE="RADIO" VALUE="B">  B. JSP and servlets are
    unrelated technologies
    TYPE="RADIO" VALUE="C">  C. Servlets and JSP are
    competing technologies for handling web requests. Servlets are being superceded
    by JSP, which is preferred. The two technologies are not useful in combination.
    TYPE="RADIO" VALUE="D">  D. JSPs are built on
    servlet semantics and all JSPs are compiled to servlets for runtime usage




  2. What is a benefit of
    using JavaBeansTM to separate business logic
    from presentation markup within the JSP environment?












    TYPE="RADIO" VALUE="A">  A.
    It allows the JSP to
    access middleware
    TYPE="RADIO" VALUE="B">  B. It creates a cleaner
    role separation between the web-production team and the software development
    team, so that the web-production team can focus on presentation markup, while
    the software team can focus on building reusable software components for helping
    to generate dynamic displays
    TYPE="RADIO" VALUE="C">  C. It provides a dynamic
    markup environment, such that JavaBeans are integrated seamlessly with the
    template presentation content, in order to create the dynamic display for the
    client
    TYPE="RADIO" VALUE="D">  D. It provides the
    developer with full access to the JavaTM 2
    Platform Enterprise Edition (J2EETM),
    which is unavailable from outside the JavaBean environment




  3. Why use the
    RequestDispatcher to forward a request to another resource,
    instead of doing a sendRedirect?












    TYPE="RADIO" VALUE="A">  A. Redirects are no
    longer supported in the current servlet API
    TYPE="RADIO" VALUE="B">  B. Redirects are not a
    cross-platform portable mechanism
    TYPE="RADIO" VALUE="C">  C. The RequestDispatcher
    does not use the reflection API
    TYPE="RADIO" VALUE="D">  D. The
    RequestDispatcher does not require a round trip to the client, and
    thus is more efficient and allows the server to maintain request
    state





  4. What alternatives exist
    to embedding Java code directly within the HTML markup of your JSP page?












    TYPE="RADIO" VALUE="A">  A. Moving the code into
    your session manager
    TYPE="RADIO" VALUE="B">  B. Moving the code into
    sciptlets
    TYPE="RADIO" VALUE="C">  C. Moving the code into
    JavaBeans and servlets
    TYPE="RADIO" VALUE="D">  D. Moving the code into a
    transaction manager




  5. What type of scriptlet
    code is better-suited to being factored forward into a servlet?












    TYPE="RADIO" VALUE="A">  A. Code that deals
    with logic that is common across requests
    TYPE="RADIO" VALUE="B">  B. Code that deals
    with logic that is vendor specific
    TYPE="RADIO" VALUE="C">  C. Code that deals
    with logic that relates to database access
    TYPE="RADIO" VALUE="D">  D. Code that deals
    with logic that relates to client scope





  6. Choose the statement that
    best describes how to connect JSP pages and EJBs












    TYPE="RADIO" VALUE="A">  A. Lookup the EJBs from
    within a JSP, but use the EJBs from within a basic JavaBean
    TYPE="RADIO" VALUE="B">  B. Lookup and use the EJBs
    from a separate business delegate. The JavaBeans that work with JSP pages are
    clients to these business delegates and know nothing about EJB
    specifics
    TYPE="RADIO" VALUE="C">  C. Lookup and use the
    EJBs from within a JSP page, but only as remote references
    TYPE="RADIO" VALUE="D">  D. Lookup the EJBs from
    within a servlet, delegating usage to specific JSP pages





    华友协同办公自动化OA系统
    华友协同办公自动化OA系统

    华友协同办公管理系统(华友OA),基于微软最新的.net 2.0平台和SQL Server数据库,集成强大的Ajax技术,采用多层分布式架构,实现统一办公平台,功能强大、价格便宜,是适用于企事业单位的通用型网络协同办公系统。 系统秉承协同办公的思想,集成即时通讯、日记管理、通知管理、邮件管理、新闻、考勤管理、短信管理、个人文件柜、日程安排、工作计划、工作日清、通讯录、公文流转、论坛、在线调查、

    下载
  7. Are custom tags
    available in JSP 1.0? If not, how else might you implement iteration from
    within a JSP?












    TYPE="RADIO" VALUE="A">  A. Yes, but the only tags
    available relate to database access
    TYPE="RADIO" VALUE="B">  B. No. To iterate over a
    collection of values, one must use scriptlet code
    TYPE="RADIO" VALUE="C">  C. No, but there is a
    standard tag that may be used
    TYPE="RADIO" VALUE="D">  D. Yes, but custom tags
    will not help developers create tags for use in iterating over a
    collection





  8. What is the initial
    contact point for handling a web request in a Page-Centric architecture?












    TYPE="RADIO" VALUE= "A">  A. A JSP
    page
    TYPE="RADIO" VALUE= "B">  B. A
    JavaBean
    TYPE="RADIO" VALUE= "C">  C. A
    servlet
    TYPE="RADIO" VALUE= "D">  D. A session
    manager





  9. What is the difference
    between doing an include or a forward with a
    RequestDispatcher?












    TYPE="RADIO" VALUE="A">  A. The forward method
    transfers control to the designated resource, while the include method invokes
    the designated resource, substitutes its output dynamically in the display, and
    returns control to the calling page.
    TYPE="RADIO" VALUE="B">  B. The two methods
    provide the same functionality, but with different levels of
    persistence
    TYPE="RADIO" VALUE="C">  C. The forward method is
    deprecated as of JSP 1.1 and the include method should be used in order to
    substitue portions of a dynamic display at runtime
    TYPE="RADIO" VALUE="D">  D. The include method
    transfers control to a dynamic resource, while the forward method allows for
    dynamic substitution of another JPS pages output, returning control to the
    calling resource




  10. What line of code below
    might be combined in the same JSP page with a validation guard (for
    example, ), in order to create
    an alternate flow of control for scenarios in which exceptions arise. The
    validationGaurd method might throw an exception, which should cause
    the flow of control to continue in another user-defined page (assume JSP
    1.0)












    TYPE="RADIO" VALUE="A">  A. page="errorPage.jsp" guard="true" />
    TYPE="RADIO" VALUE="B">  B. language="java" buffer="8k" %>
    TYPE="RADIO" VALUE="C">  C. id="bean" class="examples.Bean" scope="request" />
    TYPE="RADIO" VALUE="D">  D. language="java" errorPage="errorPage.jsp" buffer="8k"
    %>















相关专题

更多
php与html混编教程大全
php与html混编教程大全

本专题整合了php和html混编相关教程,阅读专题下面的文章了解更多详细内容。

6

2026.01.13

PHP 高性能
PHP 高性能

本专题整合了PHP高性能相关教程大全,阅读专题下面的文章了解更多详细内容。

6

2026.01.13

MySQL数据库报错常见问题及解决方法大全
MySQL数据库报错常见问题及解决方法大全

本专题整合了MySQL数据库报错常见问题及解决方法,阅读专题下面的文章了解更多详细内容。

6

2026.01.13

PHP 文件上传
PHP 文件上传

本专题整合了PHP实现文件上传相关教程,阅读专题下面的文章了解更多详细内容。

5

2026.01.13

PHP缓存策略教程大全
PHP缓存策略教程大全

本专题整合了PHP缓存相关教程,阅读专题下面的文章了解更多详细内容。

3

2026.01.13

jQuery 正则表达式相关教程
jQuery 正则表达式相关教程

本专题整合了jQuery正则表达式相关教程大全,阅读专题下面的文章了解更多详细内容。

1

2026.01.13

交互式图表和动态图表教程汇总
交互式图表和动态图表教程汇总

本专题整合了交互式图表和动态图表的相关内容,阅读专题下面的文章了解更多详细内容。

15

2026.01.13

nginx配置文件详细教程
nginx配置文件详细教程

本专题整合了nginx配置文件相关教程详细汇总,阅读专题下面的文章了解更多详细内容。

4

2026.01.13

nginx部署php项目教程汇总
nginx部署php项目教程汇总

本专题整合了nginx部署php项目教程汇总,阅读专题下面的文章了解更多详细内容。

5

2026.01.13

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
CSS3 教程
CSS3 教程

共18课时 | 4.5万人学习

Git 教程
Git 教程

共21课时 | 2.6万人学习

Django 教程
Django 教程

共28课时 | 3万人学习

关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号