alternately visits, and has the formidable Server/Client interactive ability. In this article does main
work: Introduced Win2000 +JSP (J2DK+TOMCAT) the system and to insert
JAVABEAN the general principle; Elaborates the entire operating system teaching website outline
design, the system structure and the principle of work; Has analyzed in the system realization
particularity, the difficulty and key; The detailed design realization institute introduced, in the
teaching resources, the class schedule, the classroom instruction, the on-line Q/A, other curricula,
class downloading, the message feedback, the station search, program module and so on
announcement column, friendship link, campus scenery, news center, column navigation; Each
module concrete realization, also in analysis and solution realization certain technical questions;
The establishment integrity experimental website, carries on the test and the analysis result.
Key words: JAVABEAN JSP Network teaching JAVASCRIPT JDBC
第一章 JSP 简介
1.1 JSP 技术
1.1.1 将内容生成和显示进行分离
用 JSP 技术,Web 页面开发人员可以使用 HTML 或者 XML 标识来设计和格式
化最终页面,并使用 JSP 标识或者小脚本来生成页面上的动态内容,内容是根据
请求变化的,例如请求账户信息或者特定的一瓶酒的价格等。生成内容的逻辑被
封装在标识和 JavaBeans 组件中,并且捆绑在脚本中,所有的脚本在服务器端运
行。由于核心逻辑被封装在标识和 JavaBeans 中,所以 Web 管理人员和页面设计
者,能够编辑和使用 JSP 页面,而不影响内容的生成。在服务器端 JSP 引擎解释
JSP 标识和脚本,生成所请求的内容,例如,通过访问 JavaBeans 组件,使用 JDBC
技术访问数据库或者包含文件,并且将结果以 HTML 或者 XML 页面的形式发送回
浏览器。这既有助于作者保护自己的代码,又能保证任何基于 HTML 的 Web 浏览器
的完全可用性。
1.1.2 可重用组件
绝 大多 数 JSP 页 面 依 赖 于可 重 用 的 、 跨 平 台 的 组 件 , JavaBeans 或 者
Enterprise 、JavaBeans 组件,来执行应用程序所要求的复杂的处理。开发人员
能够共享和交换执行普通操作的组件或者使得这些组件为更多的使用者和客户
团体所使用。基于组件的方法加速了总体开发过程并且使得各种组织在他们现有
的技能和优化结果的开发努力中得到平衡。
1.1.3 适用平台
几乎所有平台都支持 Java�JSP�JavaBeans 几乎可以在所有平台下通行无
阻。从一个平台移植到另外一个平台,JSP 和 JavaBeans 甚至不用重新编译,因
为 Java 字节码都是标准的与平台无关的。
1.1.4 数据库连接
Java 中连接数据库的技术是 JDBC,Java 程序通过 JDBC 驱动程序与数据库相
连,执行查询、提取数据等操作。Sun 公司还开发了 JDBC�ODBC bridge,利用
此技术 Java 程序可以访问带有 ODBC 驱动程序的数据库,目前大多数数据库系统
评论2
最新资源