上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 40 下一页
  2014年6月7日
摘要: 级联操作,操作class对象的时候 级联操作 studentClasses.java文件 1 package cn.itcast.hiberate.sh.domain; 2 3 import java.util.Set; 4 5 public class Classes { 6 priv... 阅读全文
posted @ 2014-06-07 16:22 wf110 阅读(2066) 评论(1) 推荐(0) 编辑
摘要: 1 This is my JSP page. 2 3 4 5 6 10 12 13 14 15 -->16 >18 -->19 21... 阅读全文
posted @ 2014-06-07 10:37 wf110 阅读(549) 评论(0) 推荐(0) 编辑
摘要: strus2中获取表单数据 两种方式 属性驱动 和模型驱动属性驱动/** * 当前请求的action在栈顶,ss是栈顶的元素,所以可以利用setValue方法赋值 * 如果一个属性在对象栈,在页面上可以根据name属性进行回显 */ /** * 属性驱动实现的条件: * ... 阅读全文
posted @ 2014-06-07 10:15 wf110 阅读(2833) 评论(0) 推荐(0) 编辑
  2014年6月6日
摘要: 阅读全文
posted @ 2014-06-06 14:25 wf110 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.itcast.hibernate.sh.state; 2 3 import org.hibernate.Session; 4 import org.hibernate.Transaction; 5 import org.junit.Test; 6 7 i... 阅读全文
posted @ 2014-06-06 14:24 wf110 阅读(920) 评论(0) 推荐(0) 编辑
摘要: assined 主键的值 程序指定uuid hibernate帮你生成uuid,所以主键必须为StringIdentity 数据库表必须支持自动增长,新的主键的产生是由数据库完成的,并不是由hibernate或者程序员完成的increment 递增加11 2 ... 阅读全文
posted @ 2014-06-06 13:52 wf110 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 路径:查找路径 实际上都是查找编译后的对应的路径,在bin文件夹中总增删改必须开启事务才行hibernate加载文件的两种方式 configure1.引包 1 antlr-2.7.6.jar 2 backport-util-concurrent.jar 3 c3p0-0.9.1.jar 4 comm... 阅读全文
posted @ 2014-06-06 09:22 wf110 阅读(448) 评论(0) 推荐(0) 编辑
  2014年6月5日
摘要: 在struts.xml中配置如下1 2 3 application/octet-stream4 inputStream5 attachment;filename=$... 阅读全文
posted @ 2014-06-05 18:35 wf110 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 问题:在Struts2中失效了,不但调转不过去还报404错误。不知道是Struts2中不支持还是需要其他的配置。原因:因为struts2采用过滤器的方式处理请求,默认情况时监控url地址的变化解决办法1、配置web.xml 解决1 2 struts2 3 /* 4 R... 阅读全文
posted @ 2014-06-05 14:58 wf110 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 添加3个包struts2-jfreechart-plugin-2.3.16.3.jarjcommon-1.0.16.jarjfreechart-1.0.13.jarstruts.xml中配置查看struts2-jfreechart-plugin-2.3.16.3.jar中的struts-plugin... 阅读全文
posted @ 2014-06-05 08:38 wf110 阅读(637) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 40 下一页