📄 hibernate+spring+struts2+extjs开发crud功能 - myloon的专栏 - csdnblog.htm
字号:
<LI class=listitem><A
href="http://blog.csdn.net/myloon/category/268381.aspx">HIBERNATE</A><A
href="http://blog.csdn.net/myloon/category/268381.aspx/rss">(RSS)</A>
<LI class=listitem><A
href="http://blog.csdn.net/myloon/category/268378.aspx">JAVA</A><A
href="http://blog.csdn.net/myloon/category/268378.aspx/rss">(RSS)</A>
<LI class=listitem><A
href="http://blog.csdn.net/myloon/category/268379.aspx">JSF</A><A
href="http://blog.csdn.net/myloon/category/268379.aspx/rss">(RSS)</A>
<LI class=listitem><A
href="http://blog.csdn.net/myloon/category/311972.aspx">oracle </A><A
href="http://blog.csdn.net/myloon/category/311972.aspx/rss">(RSS)</A>
<LI class=listitem><A
href="http://blog.csdn.net/myloon/category/268380.aspx">SPRING</A><A
href="http://blog.csdn.net/myloon/category/268380.aspx/rss">(RSS)</A>
<LI class=listitem><A
href="http://blog.csdn.net/myloon/category/315597.aspx">web</A><A
href="http://blog.csdn.net/myloon/category/315597.aspx/rss">(RSS)</A>
<LI class=listitem><A
href="http://blog.csdn.net/myloon/category/357914.aspx">操作系统</A><A
href="http://blog.csdn.net/myloon/category/357914.aspx/rss">(RSS)</A></LI></UL>
<H3 class=listtitle>收藏</H3>
<UL class=list></UL>
<H3 class=listtitle>相册</H3><!--category title-->
<UL class=list></UL>
<H3 class=listtitle>存档</H3>
<UL class=list>
<LI><A href="http://blog.csdn.net/myloon/archive/2008/01.aspx">2008年01月(2)</A>
<LI><A href="http://blog.csdn.net/myloon/archive/2007/11.aspx">2007年11月(7)</A>
<LI><A href="http://blog.csdn.net/myloon/archive/2007/06.aspx">2007年06月(4)</A>
<LI><A href="http://blog.csdn.net/myloon/archive/2007/04.aspx">2007年04月(2)</A>
<LI><A
href="http://blog.csdn.net/myloon/archive/2007/01.aspx">2007年01月(2)</A></LI></UL><SPAN
id=Anthem_RecentComments_ltlComments__><SPAN id=RecentComments_ltlComments>
<H3 class=listtitle>最近评论</H3>
<UL class=list>
<LI class=listitem>dongzhongping:<A
title="点击查看《回复:用ExtJS 实现动态载入树(Load tree)》"
href="http://blog.csdn.net/myloon/archive/2007/11/09/1876089.aspx#762545">大棒了,关注。希望你能多写Extjs的文章。我正学习它呢,可是它的文档很少,特别是实例。</A>
<LI class=listitem>gswgz:<A
title=点击查看《回复:Hibernate+Spring+Struts2+ExtJS开发CRUD功能》
href="http://blog.csdn.net/myloon/archive/2007/11/08/1873652.aspx#758662">学习中,也请给我发一份带包的完整代码!谢谢了!~<BR>gswgz@sina.com</A>
<LI class=listitem>yamiqi:<A
title=点击查看《回复:Hibernate+Spring+Struts2+ExtJS开发CRUD功能》
href="http://blog.csdn.net/myloon/archive/2007/11/08/1873652.aspx#751072">楼主,能不能给个联系方式呢??<BR><BR>有个问题想向你请教</A>
<LI class=listitem>myloon:<A
title=点击查看《回复:Hibernate+Spring+Struts2+ExtJS开发CRUD功能》
href="http://blog.csdn.net/myloon/archive/2007/11/08/1873652.aspx#747343">在Hibernate配置文件中加入<BR><property
name="hibernate.hbm2ddl.auto">create</property><BR>后
运行一次,即可自动创建数据库,然后屏蔽这行代码再运行即可。<BR>我的开发环境是:<BR>Hibernate+Spring+Struts2+ExtJS2.0<BR>eclipse+t……</A>
<LI class=listitem>coral0212:<A title="点击查看《回复:用ExtJS 实现动态载入树(Load tree)》"
href="http://blog.csdn.net/myloon/archive/2007/11/09/1876089.aspx#746646">我做的是两个表,除了机构还有部门表,这样组成的一个树,怎么解决,<BR>而且怎么判断是叶子节点,能不能说清楚一点</A></LI></UL></SPAN></SPAN><BR><BR></DIV>
<DIV id=main><SPAN class=PreAndNext id=viewpost.ascx_PreviousAndNextEntriesUp>
<DIV align=center><A
href="http://blog.csdn.net/myloon/archive/2007/11/09/1876089.aspx">上一篇: 用ExtJS
实现动态载入树(Load tree)</A> | <A
href="http://blog.csdn.net/myloon/archive/2007/11/06/1869843.aspx">下一篇: Java
Web开发模型新构思——Hibernate/JPA…+Spring+Struts2/DWR…+ExtJS</A></DIV></SPAN><BR>
<SCRIPT>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</SCRIPT>
<DIV class=post>
<DIV class=postTitle>
<SCRIPT
src="Hibernate+Spring+Struts2+ExtJS开发CRUD功能 - myloon的专栏 - CSDNBlog_files/vote.js"></SCRIPT>
<A href="http://blog.csdn.net/myloon/archive/2007/11/08/1873652.aspx"><IMG
height=13
src="Hibernate+Spring+Struts2+ExtJS开发CRUD功能 - myloon的专栏 - CSDNBlog_files/authorship.gif"
width=15 border=0> Hibernate+Spring+Struts2+ExtJS开发CRUD功能</A>
<SCRIPT
src="Hibernate+Spring+Struts2+ExtJS开发CRUD功能 - myloon的专栏 - CSDNBlog_files/count.htm"></SCRIPT>
</DIV>
<DIV class=postText>
<P class=MsoNormal style="MARGIN: 0pt; TEXT-ALIGN: center" align=center><FONT
size=3><SPAN lang=EN-US><FONT
face=Calibri>Hibernate+Spring+Struts2+ExtJS</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">开发</SPAN><SPAN
lang=EN-US><FONT face=Calibri>CRUD</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">功能</SPAN></FONT></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: -18pt; mso-char-indent-count: 0; mso-list: l0 level1 lfo1"><SPAN
lang=EN-US
style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN
style="mso-list: Ignore"><FONT face=Calibri size=3>1、</FONT><SPAN
style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin"><FONT
size=3>入门:</FONT></SPAN></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: 0pt; mso-char-indent-count: 0"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin"><FONT
size=3>各种开源框架环境及下载:</FONT></SPAN></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: 0pt; mso-char-indent-count: 0"><FONT
size=3><SPAN lang=EN-US><FONT face=Calibri>Hibernate</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">:</SPAN><SPAN
lang=EN-US><FONT face=Calibri>3.x <SPAN
style="mso-spacerun: yes"> </SPAN></FONT><A
href="http://www.hibernate.org/"><FONT
face=Calibri>http://www.hibernate.org/</FONT></A><FONT face=Calibri>
</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">需要</SPAN><SPAN
lang=EN-US><FONT face=Calibri>hibernate core </FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">和</SPAN><SPAN
lang=EN-US><FONT face=Calibri>annotations </FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">包。</SPAN></FONT></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: 0pt; mso-char-indent-count: 0"><FONT
size=3><SPAN lang=EN-US><FONT face=Calibri>Spring</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">:</SPAN><SPAN
lang=EN-US><FONT face=Calibri>2.x </FONT><A
href="http://springframework.org/"><FONT
face=Calibri>http://springframework.org/</FONT></A><FONT face=Calibri>
</FONT></SPAN></FONT></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: 0pt; mso-char-indent-count: 0"><FONT
size=3><SPAN lang=EN-US><FONT face=Calibri>Struts2</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">:</SPAN><SPAN
lang=EN-US><FONT face=Calibri>2.x </FONT><A
href="http://struts.apache.org/2.x/"><FONT
face=Calibri>http://struts.apache.org/2.x/</FONT></A><FONT face=Calibri>
</FONT></SPAN></FONT></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: 0pt; mso-char-indent-count: 0"><FONT
size=3><SPAN lang=EN-US><FONT face=Calibri>ExtJS</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">:</SPAN><SPAN
lang=EN-US><FONT face=Calibri>2.X </FONT><A href="http://extjs.com/"><FONT
face=Calibri>http://extjs.com/</FONT></A><FONT face=Calibri>
</FONT></SPAN></FONT></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: 0pt; TEXT-ALIGN: left; mso-char-indent-count: 0"
align=left><FONT size=3><SPAN lang=EN-US><FONT
face=Calibri>JSON</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">:</SPAN><SPAN
lang=EN-US><FONT face=Calibri>JSON</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">可以到</SPAN><SPAN
lang=EN-US><A href="http://www.json.org/"><FONT
face=Calibri>http://www.json.org/</FONT></A><FONT face=Calibri>
</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">查看详细内容,这里使用</SPAN><SPAN
lang=EN-US><FONT face=Calibri>json-lib </FONT><A
href="http://json-lib.sourceforge.net/"><FONT
face=Calibri>http://json-lib.sourceforge.net/</FONT></A><FONT face=Calibri>
</FONT></SPAN></FONT></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: 0pt; TEXT-ALIGN: left; mso-char-indent-count: 0"
align=left><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin"><FONT
size=3>本所需要的包:</FONT></SPAN></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: 0pt; TEXT-ALIGN: left; mso-char-indent-count: 0"
align=left><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin"><FONT
size=3></FONT></SPAN></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: 0pt; TEXT-ALIGN: left; mso-char-indent-count: 0"
align=left><SPAN lang=EN-US style="mso-no-proof: yes"><FONT size=3><V:SHAPETYPE
id=_x0000_t75 coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><V:STROKE
joinstyle="miter"></V:STROKE><V:FORMULAS><V:F
eqn="if lineDrawn pixelLineWidth 0"></V:F><V:F eqn="sum @0 1 0"></V:F><V:F
eqn="sum 0 0 @1"></V:F><V:F eqn="prod @2 1 2"></V:F><V:F
eqn="prod @3 21600 pixelWidth"></V:F><V:F
eqn="prod @3 21600 pixelHeight"></V:F><V:F eqn="sum @0 0 1"></V:F><V:F
eqn="prod @6 1 2"></V:F><V:F eqn="prod @7 21600 pixelWidth"></V:F><V:F
eqn="sum @8 21600 0"></V:F><V:F eqn="prod @7 21600 pixelHeight"></V:F><V:F
eqn="sum @10 21600 0"></V:F></V:FORMULAS><V:PATH o:extrusionok="f"
gradientshapeok="t" o:connecttype="rect"></V:PATH><O:LOCK v:ext="edit"
aspectratio="t"></O:LOCK></V:SHAPETYPE><V:SHAPE id=_x0000_i1031
style="VISIBILITY: visible; WIDTH: 312pt; HEIGHT: 286.5pt; mso-wrap-style: square"
type="#_x0000_t75"><V:IMAGEDATA
src="file:///C:\DOCUME~1\myloon\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.png"
o:title="" croptop="7605f" cropbottom="26218f" cropleft="21473f"
cropright="22391f"></V:IMAGEDATA></V:SHAPE></FONT></SPAN></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: 0pt; TEXT-ALIGN: left; mso-char-indent-count: 0"
align=left><SPAN lang=EN-US><O:P><FONT face=Calibri size=3> <IMG alt=""
src="Hibernate+Spring+Struts2+ExtJS开发CRUD功能 - myloon的专栏 - CSDNBlog_files/crud_image001.jpg"></FONT></O:P></SPAN></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: -18pt; mso-char-indent-count: 0; mso-list: l0 level1 lfo1"><SPAN
lang=EN-US
style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN
style="mso-list: Ignore"><FONT face=Calibri size=3>2、</FONT><SPAN
style="FONT: 7pt 'Times New Roman'"> </SPAN></SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin"><FONT
size=3>配置:</FONT></SPAN></P>
<P class=MsoListParagraph
style="MARGIN: 0pt 0pt 0pt 18pt; TEXT-INDENT: 0pt; mso-char-indent-count: 0"><FONT
size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">(</SPAN><SPAN
lang=EN-US><FONT face=Calibri>1</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">)首先是配置</SPAN><SPAN
lang=EN-US><FONT face=Calibri>web.xml</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">,配置方法可以在下面的配置文件代码注释中查看,这里主要是</SPAN><SPAN
lang=EN-US><FONT face=Calibri>Struts2</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: 宋体; mso-fareast-theme-font: minor-fareast; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin">的配置:</SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><SPAN lang=EN-US
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -