信息工程学院本科生毕业设计说明书
题目: 基于 HTML5 的博客
姓 名:
学 号:
专 业:
班 级:
指 导 教 师:
摘 要
在互联网时代的日常生活中,博客应运而生,所谓博客其实就是网络,也有人称
之为部落格,博客记录了我们日常生活中发生的事情或者自己的觉得的趣闻,我们可
以把自己的东西与别人分享交流,与此同时我们也可以结交到很好同路人,所以越来
越多的博客出现,让我们感受到了了博客给我们带来的巨大价值,每个人的博客都有
着不同的内容,我们只关注自己感兴趣的部分,并从中获取到自己想要获取的东西,
以及专业的知识,随着越来越多的人有了博客,用户数量不断增加,博客已经成为一
种流行生活方式,流行的工作方式,流行的学习方式,也被越来越多的人接受和认可,
博客改变了传统生活方式,改变了我们的生活,我今天说的这个博客系统就是用来传
播自己想要传播的思想以及知识
要实现博客系统有很多技术都可以实现,比如 easyjs,jsp,php asp 等等,而我做的
这个博客系统所用到的技术是 jsp,jsp 不能简单理解为包含 java 代码的 html,应该是
包含 html 代码的 servlet,web 容器首先将 jsp 文件翻译成 java 文件,再将 java 编译
为 java 字节码文件,当客户端访问 jsp 时,web 容器将调用 java 字节码文件,将运行
结果(可能是客户端浏览器需要的 html 代码,也可能是二进制文件流)返回给 web
服务器,由 web 服务器返回给客户端。jsp 网页,最终要在服务器端先运行,运行的
结果才返回给客户端,而 html 静态页面则不会在服务器端运行,只是由 web 服务器
将其中的文本直接读出,并返回给客户端,所以 html 无法访问服务器端资源,而 jsp
可以(如读写服务器上配置的数据库,删除、修改服务器端的文件等)
Jsp 是 sun 公司的产品,sun 公司现在被 oracle 收购,jsp 是一种可以响应客户端
请求的服务端程序语言,可以动态生成 html 或其他格式的 web 网页的代码
JSP 被 JSP 编译器编译成 Java Servlets。Java 编译器可以把 JSP 编译成 JAVA 代码写
的 servlet 然后再用编译器生成机器码,也可以直接编译成二进制码。
关键词:博客 jsp
Abstract
In daily life in the Internet age, blog came into being, in fact, it is so-called blog
network, was also known as blogs, blog about what happens in our daily lives or their
anecdotes that we can put our own things and others share exchange, at the same time we
can make good to fellow travelers, so more and more blog there, so we feel the tremendous
value of the blog has brought us, everyone's blog has a different content, we only
concerned with the part of interest and use to obtain what they want to achieve, as well as
professional knowledge, as more and more people have a blog, increasing the number of
users, the blog has become a popular way of life, popular works, popular way of learning,
but also more and more people accepted and recognized blog has changed the traditional
way of life has changed our lives, I say today that this blog system you want to spread
spread ideas and knowledge
To achieve the blog system had a lot of technology can be achieved, for example
easyjs, jsp, php asp, etc., and I am doing this blog system technology used is jsp, jsp can
not be simply interpreted as html containing java code should contain html servlet code,
web container is first translated into java file jsp file, and then compiled to java java byte
code file, when the client access jsp, web container calls the java byte code file, the
operating results (may be a client side browser required html code, it could be a binary file
stream) back to the web server, as returned by the web server to the client. jsp page, and
ultimately to be running on the server side, only the results of running back to the client,
and static html page is not run on the server side, but by the web server will directly read
out the text, and returned to the client, so html Unable to access server-side resources, jsp
can (such as read and write on the server configuration database, delete, modify server-side
files, etc.)
Jsp is the sun the company's products, the company is now oracle sun acquisition, jsp
is a server-side programming language can respond to client requests, you can dynamically
generate html or other formats web page code
JSP compiler JSP is compiled into Java Servlets. Java compiler can compile the JSP
into a servlet written in JAVA code and then use the compiler to generate machine code to
be compiled into binary code directly.
Key words: blog jsp
目 录
1 系统概述............................................................................................................................1
1.1 设计目的...................................................................................................................1
1.2 设计思路...................................................................................................................1
1.3 系统需求分析...........................................................................................................1
1.4 开发环境..................................................................................................................2
1.4.1 开发环境......................................................................................................2
1.5 运行环境..................................................................................................................3
2 总体设计............................................................................................................................5
2.1 系统结构..................................................................................................................5
2.1.1 系统流程图....................................................................................................5
2.1.2 模块结构图....................................................................................................5
2.2 模块功能设计..........................................................................................................6
2.2.1 推荐模块设计................................................................................................7
2.2.2 热门模块设计................................................................................................7
2.2.3 我的模块设计................................................................................................8
3 运行设计.............................................................................................................................9
3.1 手机客户端界面.......................................................................................................9
3.2 运行代码................................................................................................................14
4 系统测试..........................................................................................................................19
4.1 系统功能测试.........................................................................................................19
4.2 系统稳定性测试....................................................................................................20
4.3 系统安全性测试....................................................................................................20
参考文献..............................................................................................................................21