MyBlog JSF/JPA CRUD Example Project
* License
This project is provided under the Apache 2 license, please see LICENSE.txt for
details.
* Description
MyBlogJSFJPA is a simple web blog application with a JSF web UI and JPA
persistence.
This project demonstrates full CRUD support for a single blog database table.
Also this project is preconfigured to run on the MyEclipse Server Sandbox,
i.e., embedded Tomcat 6 and Derby database with a sample schema that ships with
MyEclipse 6.0.
The project architecture consists of:
1. A JSF page for each of the 4 CRUD operations on a Post database table
2. A managed bean that serves as a controller for maintaining the UI state
and managing persistence actions
3. A Post JPA entity and a PostDAO for persistence
4. The MYBLOG schema required by this example is included in the
MyEclipse Server Sandbox
To help you better understand the structure of the MYBLOG schema, an
entity-relation diagram of the schema is included the database folder in this
project. Double-click the file MYBLOG.mer to view an ER Diagram of the schema.
You can generate your own ER diagram by opening the MyEclipse Database
Explorer Perspective and right-clicking on the schema you wish to generate the
ER Diagram for and selecting "New ER Diagram", then selecting where you want
the ER Diagram generated.
* Requirements
* MyEclipse 6.0 or later
* Java SE 5 or greater
* How to Run
You can right-click on this project and go to Debug As or Run As then select
"MyEclipse Server Application". MyEclipse 6.0 and later will automatically deploy
the application to the MyEclipse Tomcat Server, then start it up and open
a browser window for you to the index.jsp page.
NOTE: If you observe an HTTP ERROR 500 or exception on startup, namely:
SEVERE: Servlet.service() for servlet jsp threw exception
java.net.ConnectException: Connection refused: connect
Then chances are the MyEclipse Derby server did not automatically start up.
To fix this issue, please switch to the Servers view in the MyEclipse
Perspective, start the MyEclipse Derby server manually and then relaunch the
application.
* Related Links
* MyEclipse JSF Tutorial - http://www.myeclipseide.com/documentation/quickstarts/jsf/
* MyEclipse JPA Tutorial - http://www.myeclipseide.com/documentation/quickstarts/jpa/
* MyEclipse JSF Designer Tutorial - http://www.myeclipseide.com/documentation/quickstarts/jsfdesigner/
* Feedback
We hope you found this example project helpful. If you ran into any problems
while working with the example project, please feel free to post to our Example
Project Forum (http://www.myeclipseide.com/PNphpBB2-viewforum-f-54.html) and
let us know. Also if you had any suggestions for improvements, noticed something
wrong or just wanted to ask questions we encourage you to post and let us know!
没有合适的资源?快使用搜索试试~ 我知道了~
完整的jsf博客源代码
共34个文件
jsp:6个
xml:5个
class:5个
3星 · 超过75%的资源 需积分: 10 27 下载量 177 浏览量
2009-10-14
12:51:56
上传
评论
收藏 464KB RAR 举报
温馨提示
完整的jsf博客例子,使用derby数据库,展示一个典型的博客,适合初学者学习jsf,是一个不错的学习例子,使用时只需要导入到eclipse中,把derby数据库的服务启动即可
资源推荐
资源详情
资源评论
收起资源包目录
JSF博客.rar (34个子文件)
JSF博客
.project 2KB
resources
MYBLOG.ddl 296B
MYBLOG.mer 1KB
.settings
org.eclipse.jst.jsf.designtime.appmgr.prefs 0B
org.jboss.tools.jst.web.xml 271B
com.genuitec.eclipse.j2eedt.core.prefs 1KB
com.genuitec.eclipse.persistence.jpa.prefs 320B
.mymetadata 304B
WebRoot
WEB-INF
web.xml 821B
faces-config.xml 2KB
.faces-config.mex 2KB
lib
derbyclient.jar 459KB
classes
META-INF
persistence.xml 899B
com
myeclipseide
examples
myblog
jsf
PostConverter.class 2KB
PostController.class 5KB
persistence
EntityManagerHelper.class 2KB
Post.class 2KB
PostDAO.class 4KB
index.jsp 4KB
META-INF
MANIFEST.MF 39B
post
Detail.jsp 1KB
Edit.jsp 2KB
New.jsp 1KB
List.jsp 2KB
Home.jsp 565B
src
META-INF
persistence.xml 899B
com
myeclipseide
examples
myblog
jsf
PostController.java 6KB
PostConverter.java 1KB
persistence
Post.java 2KB
EntityManagerHelper.java 2KB
PostDAO.java 3KB
README.txt 3KB
LICENSE.txt 10KB
.classpath 550B
共 34 条
- 1
资源评论
- 行者一个2013-05-29没有什么特殊的技术,都是基本的,每本书上都有
- abcdefg2212013-08-05较为简单,没什么参考性
jdddl2001hnht
- 粉丝: 1
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 5uonly.apk
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
- 基于MIC+NE555光敏电阻的声光控电路Multisim仿真原理图
- 基于JSP毕业设计-基于WEB操作系统课程教学网站的设计与实现(源代码+论文).zip
- 基于LM324和LM386的音响放大器Multisim仿真+PCB电路原理图
- Python机器学习与数据挖掘环境配置与库验证
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功