1、 毕毕 业业 设设 计计 (论论 文文) 信息工程 系(院) 08 计算机网络 专业 毕业设计(论文)题目 聊天工具设计与实现 学生姓名 班 级 08 计算机网络技术 学 号 指导教师 完成日期 2011 年 5 月 30 日 Abstract 聊天工具设计与实现聊天工具设计与实现 Design and implementation of chat 总计 毕业设计(论文) 41 页 表 格 2 个 插 图 13 幅 I 摘 要 越来越多的人开始通过网络进行及时的沟通和交流,聊天室应用系统是一个比较好的 人们进行实时交互的工具,而最常用的就是完全基于 WWW 的方式,用户不需要任何定制的 客户端
2、,只需要通过访问指定的 URL 就可以登入聊天室和其他在线的用户进行沟通。 本系统主要具有用户注册、用户登录验证、用户在线显示,用户资料查看与修改、 实时聊天等功能。在实现实时显示聊天内容功能时,运用了 Ajax 技术。使用 AJAX 的 异步模式,浏览器就不必等用户请求操作,也不必更新整个窗口就可以显示新获取的数 据。 只要来回传送采用 XML 格式的数据, 在浏览器里面运行的 JavaScript 代码就可以与 服务器进行联系。 JavaScript 代码还可以把样式表加到检索到的数据上, 然后在现有网页 的聊天内容显示区加以显示。 本系统采用 Struts、JSP 作为开发工具,后台数据
3、库采用 sql server 2000 数据库设 计,利用基于 JDBC 的 ODBC 数据库访问技术实现对数据库的各种管理操作,实现用户登录 验证的功能、用户聊天的功能和显示在线聊天用户信息等功能。 关键词关键词: 聊天室 JDBC Ajax Application Session Abstract II Abstract More and more people begin to through the network to communicate and exchange, chat application system is a good people in real time, an
4、d the interactive tool is the most commonly used is completely based on WWW way, users dont need any custom client, need only through the visit the URL is designated can log in chat rooms and other online users to communicate. This system mainly has the user registration, user login validation, user
5、s online shows, the user data to check and modification, real-time chat etc. Function. To realize real-time display in chat function as the content, using Ajax technology. With AJAX asynchronous mode of, the browser will dont need to wait for users request operation, also dont have to update the who
6、le window can show new data obtained. As long as the transfer of the back and forth an XML format data in the browser, operates the JavaScript code can to contact a web server. JavaScript code can also add to the style sheet to retrieve data, and then in the existing web chat show area to show the content. The system USES Struts, JSP as development tools, the backend database using SQL server 2000 database d