strust2

Mybatis   替代  hibernate

SSH struts  spring hibernate




1、导包(hibernate、strus)hibernate4.1
如果有重复的包一定要去掉
要发布一下

2、配置文件:strus     dispatcher--filter--核心包(要找出来)
src下两个主配置文件
web.xml下也要配filter
缩进用Tab键

3、sessionFactory比较合理

4、用注解的方式放过来


ognl  要加个#request


openSessionInView 的 filter 配置文件要放在Struts配置文件的前面

使用了懒加载以后,iterator给的是代理,只能取一次数据


cascade
inverse:true      false
lazy:porxy  no-proxy first???


除了多个页面后多写几个action以外

<contant>一可以配置utf-8,二可以通配符

hibernate :要删除emp对象的

方法名 :!del?emp.empno=<s:property value="#request.emp.empno">

EL表达式先取page

emp
orgl中的var和??????????

今天要学会怎么用myeclipse来生成注解的entity


Apache的包没有导入会影响filter的实现
二级缓存如果设置为read-only会修改不了

删除了恢复:
select * from scott.emp as of timestamp to_timestamp('2017-04-20 14:00:00','yyyy-MM-dd hh24:mi:ss');
alter table scott.emp enable row movement;
flashback table scott.emp account to timestamp to_timestamp('2017-04-20 14:00:00','yyyy-MM-dd hh24:mi:ss');


validate()验证框架
validate  对其他内容进行验证
vlidateSave :只针对主键验证
用fileName去取

ognl 如果数据是从Action创建一个request传过来的话,页面要写#而且加个request
如果你想要在Action获得数据,就得在页面把参数传过去

structs新增和修改的时候的值用表单传递!!!!!!!!!!!!!!

什么情况下算是用缓存了???????????


给input取name!!!这样才能正确传递参数


posted @ 2017-04-20 20:23  孜然风味  阅读(142)  评论(0编辑  收藏  举报