设为首页
收藏本站
最近更新

文章搜索
本类热门

 

首页 >> 网络编程 >> JSP >> JSP实例 >> 新闻正文 [字体:  ] [打印文档
在线考试系统代码

文章作者:
责任编辑: 录入时间:2004-11-11 12:57:33 来源:
频道声明:本频道的文章除部分特别声明禁止转载的专稿外,可以自由转载.但请务必注明出出处和原始作者 文章版权归本频道与文章作者所有.对于被频道转载文章的个人和网站,我们表示深深的谢意. 

dana, Arial, Helvetica, sans-serif">

<P>You missed<STRONG> <%= missed %></STRONG>

<BR>Your score is<STRONG> <%= (int)grade %> </STRONG> percent.

<H4>Source Code</H4>

<P>This quiz used the <I>Page-View with Bean Approach</I>, detailed in <A

HREF="/developer/Books/javaserverpages/">Chapter 12, JSP Archeticure</A>. The <A HREF="index.txt">first

page</A> of the quiz consists of regular HTML with a form that calls <A

HREF="answer.txt"><CODE>answer.jsp</CODE></A>. <CODE>Answer.jsp</CODE> requests parameters from the bean,

in this case, called <A HREF="QuizResponses.txt">QuizResponses</A>. The <I>page-view with bean</I>

approach for this quiz required extra work to write the bean, and it could have been done using the

<I>page-view approach</I> without a bean, requesting invocation directly from the <CODE>answer.jsp</CODE>

page. Deciding which approach is preferrable depends on the application and how much HTML and Java

scriptlets need to be used. For this quiz we opted for the <I>page-view with bean</I> approach for

illustration purposes.
<P><A HREF=/developer/Quizzes/jsp/index.html>Back to Quiz</A>

<P><IMG SRC=/images/T7.gif ALIGN=LEFT>
</TABLE>
<P>
<%@ include file="footer.html" %>

此新闻共有5页 上一页 1 2 3 4 5 下一页

推荐好友 | 频道收藏 | 打印文档 | 报告错误  
相关连接
·在应用中加入全文检索功能——基于Java的全文索引引擎Lucene简介
·JSP中的字符替换函数str_replace()实现
·JSP编程进度条设计实例
·使用JSP开发WebMail系统
·在线考试系统代码
·JSP记事本程序
·用JSP创建WAP应用
·简易成绩查询系统
同一专题
·无相关专题
发表评论 版权声明:除部分特别声明不要转载,或者授权我站独家播发的文章外,大家可以自由转载我站点的原创文章,但原作者和来自我站的链接必须保留(非我站原创的,按照原来自一节,自行链接)。文章版权归我站和作者共有
转载
要求转载之图片、文件,链接请不要盗链到本站,且不准打上各自站点的水印,亦不能抹去我站点水印。
共有评论查看评论
姓名: