1、 I 摘摘 要要 本文提出了网络论坛教学系统的构建设想,并对网络教学系统的教学应用进行了深入 的分析研究,包括系统的理论支撑和系统的实施应用方案,结合当前计算机网络、数据库 技术和网络教学的评价特点。然后对开发环境以及系统模块分别做出详细介绍,系统采用 Oracle 数据库技术结合 MVC 设计模式对系统进行开发。论文主要从论坛答疑、文件共享 等模块介绍网络教学系统系统。先对学生成长档案袋管理系统的构建作了详细的分析和设 计,最终实现记录、存储、师生答疑等再现学生学习过程,实现学生、教师共同参与学生 学习过程的评价与监督,使之成为优化教学课堂的好帮手。 网络论坛教学的研究与实现,把各种多媒体信
2、息(如声音,文字,图像,动画等)融 为一体,向学生提供一个既丰富多彩、生动活泼,又方便快捷的人机交互界面,使学生在 学习过程中各个感官都能接受到教学的信息,对改善教学环境,提高教学质量,改变传统 的教学模式都会起到积极创新的作用。 在介绍系统的同时对各项开发技术均有较为详细的介绍 (JSP、 AJAX、 Struts2、 Spring) , 能让刚接触 Java 的读者更快理解网络教学系统的实现过程。 关键词:关键词:网络论坛教学,教学研究,Oracle 数据库,JSP II Abstract The construction of internet forum teaching system
3、 is proposed. Combining with the current network, database technology and the relevant evaluation methods the analysis and research on its application include the theory and application of the system. The development environment and system modules are introduced. With Oracle database technology and
4、MVC design patterns the internet forum teaching system is built. The system includes questions Comments部分代码如下: create table comments( cid number(9) not null primary key, theme varchar2(50), content varchar2(500), ctime date, id number(9), constraint pk_g foreign key(id) references users(id) ); 5.2.3
5、注册用户注册用户 当用户打开注册页面将自己的信息填写好,点击“提交”按钮之后,在客户端浏览器首 先对用户填入的信息进行校验,校验主要包括:用户在必填的选项下是否输入空的内容, 是否符合该项所定义的格式要求。如不符合要求,该表单的不会被提交到服务器端去,这 样有助于减轻服务器端的压力。 当用户填写的信息正确之后,页面由表单的Action属性确定将用户的请求发送到服务 器下的Struts2对应Action这个类下进行处理注册业务,进一步调用服务器端DAO层的 DBUtil类中注册方法,利用Java的JDBC是向数据库的表dy_user中插入一条数据。具体处理 过程: request.setChar
6、acterEncoding(“UTF-8“); String name = request.getParameter(“user“); String pass = request.getParameter(“pass“); User u = new User(); u.setName(name); u.setPass(pass); UserService userSerivce = new UserService(); int index = userSerivce.isLogin(u); switch(index) 18 case -1: UserDao userdao = new UserDaoimp(); userdao.setUser(u); response.sendRedirect(“Login.jsp“); break; default: request.setAttribute(“msg3“, “该用户已经存在!“); request.getRequestDispatcher(“register.jsp“).forward(request, resp