摘要: 前台jsp <s:form action="uploadAction" enctype="multipart/form-data" method="post"> <label>上传文件:</label><br/> <s:file name="myfiles"></s:file> <br/> <s:f 阅读全文
posted @ 2017-11-09 14:52 但为君故L 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 前台页面jsp <!-- 拦截的时候用这个 <s:form action="uploadAction" enctype="multipart/form-data" method="post"> <label>上传文件:</label><br/> <s:file name="myfiles"></s: 阅读全文
posted @ 2017-11-09 11:22 但为君故L 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 需要关联四个表 select g.*,b.name brname,s.bid,s.sname,bi.name biname from T_GOODS g left join T_brand b on b.id = g.brandid inner join T_smallclass s on g.si 阅读全文
posted @ 2017-11-08 16:08 但为君故L 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 实体类 public class Supplier { private int id; private String supplierid; private String suppliernane; private String description; private String phone; 阅读全文
posted @ 2017-11-08 15:47 但为君故L 阅读(140) 评论(0) 推荐(0) 编辑
摘要: dao层 public interface DimDao { //一个条件 public List<User> userdim(User user); //两个条件且关联表格 public List<Goods> likegood(Goods goods); //有下拉菜单 public List< 阅读全文
posted @ 2017-11-08 14:43 但为君故L 阅读(1590) 评论(0) 推荐(0) 编辑
摘要: 针对登录拦截功能,我们需要设置拦截哪些方法和不拦截哪些方法 action action类中,处理登录时,将用户、密码绑定到session ActionContext ac = ActionContext.getContext(); Map<String, Object> session1 = ac. 阅读全文
posted @ 2017-11-03 13:40 但为君故L 阅读(164) 评论(0) 推荐(0) 编辑
摘要: --首先添加主键约束alter table studentadd constraint PK_student_sno primary key(sno) --删除约束alter table studentdrop constraint PK_student_sno --not nullalter ta 阅读全文
posted @ 2017-11-01 10:38 但为君故L 阅读(5781) 评论(0) 推荐(0) 编辑
摘要: oracle数据库函数 数学函数***select abs(-1) from dual;--向上取整select ceil(2.5)from dual;select ceil(-2.4)from dual;select ceil(-2.6)from dual; --向下取整select floor( 阅读全文
posted @ 2017-11-01 10:32 但为君故L 阅读(45779) 评论(0) 推荐(0) 编辑
摘要: 供应商模块 需求:实现供应商的列表、添加、修改、删除三个功能 注意:修改时,不允许修改供应商编号 添加时,不允许显现的添加供应商编号 删除时,进行逻辑删除(根据主键将该条数据不再显示在列表) 物理删除:真正从数据库表中删除掉数据,即表中不存在这条数据了 逻辑删除:并不真正从数据库表删掉数据,而是换一 阅读全文
posted @ 2017-11-01 09:29 但为君故L 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 实体 package com.oak.entity; public class User {private int id;private String username;private String password;private int sex;private int age;private d 阅读全文
posted @ 2017-11-01 09:26 但为君故L 阅读(334) 评论(0) 推荐(0) 编辑