上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 1、准备查询语句吧 <!-- query --> <query name="yyw.search.query"> <prepared-sql> select * from my_table #sub[where $] </prepared-sql> <readers> <reader name="id" type="String" caption="编号" /> ... 阅读全文
posted @ 2013-01-17 19:03 Peter_youny 阅读(198) 评论(0) 推荐(0) 编辑
摘要: textbox,checkbox,select三类控件基本控件form:<component name="test" type="form"></component>span:<component name="text" type="span"> <component-param>text:"text field:"</component-param> </component>input-text:<component 阅读全文
posted @ 2013-01-16 11:17 Peter_youny 阅读(132) 评论(0) 推荐(0) 编辑
摘要: <!-- 我的第一个案例 --> <export name="myFirst.export" path="${page.view}" viewName="myFirst1.view"></export> <model name="myFirst" transactionType="notNeed" modelExportName="myFirst.export"></model> <view name=&quo 阅读全文
posted @ 2013-01-16 09:27 Peter_youny 阅读(122) 评论(0) 推荐(0) 编辑
摘要: <!-- 我的第一个案例 --> <export name="myFirst.export" path="${page.view}" viewName="myFirst1.view"></export> <model name="myFirst" transactionType="notNeed" modelExportName="myFirst.export"></model> <view name=&quo 阅读全文
posted @ 2013-01-16 09:10 Peter_youny 阅读(112) 评论(0) 推荐(0) 编辑
摘要: http://code.google.com/p/eterna/ 阅读全文
posted @ 2013-01-15 16:55 Peter_youny 阅读(115) 评论(0) 推荐(0) 编辑
摘要: tomcat和intellij idea里面的工程是分开的,现在需要建立一个联系,这样在启用的时候,能够自动调用里面的xml信息1、首先得找到tomcat里面的xml文件夹类似:D:\wisedu\apache-tomcat-wiscom-4.5\apache-tomcat-wiscom-4.5\conf\Catalina\localhost 查看里面是否存在本地的xml配置文件,如果没有,请先建立。2、demo.xml里面的配置信息 阅读全文
posted @ 2013-01-15 10:22 Peter_youny 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 我也是参考别人的资料一步步做的,但是人家不是最新版本,还是有些不同。首先你要安装好intellij idea和tomcat1.开始建立项目:点击【创建新项目/Create New Project】2.选择第一个【Create project from scratch】3.选择你的项目的目录和名字,type选择java module4.默认src直接next5.在左边的web application上面打钩6.IDE默认给你创建好的项目内容如下:web-inf目录下中没有classes和lib目录7.选择Project Structure 图标如下:8.选择Modules修改path的编译输出目 阅读全文
posted @ 2013-01-10 09:04 Peter_youny 阅读(508) 评论(0) 推荐(0) 编辑
摘要: (1)hibernate.cfg.xml中没有配置<mapping class=""/>(2)Post表中没有@配置,@Entity @Table 阅读全文
posted @ 2012-12-13 14:15 Peter_youny 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 在jsp中setautocommit()方法的作用摘自:http://zhidao.baidu.com/question/89927214.html这个方法是java.sql.Connection接口中定义的方法,该方法需要一个布尔类型的参数,一楼说的不错,默认是自动提交,那什么时候需要使用这个方法呢?考虑这个问题:假如做一个银行转账系统,从A的账户转500元到B的账户这个操作需要分2步1.A账户减少500元2.B账户增加500元假如A账户余额不足,B的账户仍然会增加500元,这明显是不能接受的所以我们需要采用事务假设java.sql.Connection的对象名为connjava使用事务非常 阅读全文
posted @ 2012-11-26 20:32 Peter_youny 阅读(197) 评论(0) 推荐(0) 编辑
摘要: (1)项目右击,build path(2)选择Add Libraries...(3)Add UserLibraries(4)取个名称,如JSTL 1.2(5)Add Jars-->两个文件[1]Standard.jar[2]impl.jar 阅读全文
posted @ 2012-11-24 15:41 Peter_youny 阅读(665) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页