自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 问答 (3)
  • 收藏
  • 关注

原创 mvc之添加数据

添加数据回显:在input中  value="<%=request.getParamter(”name“)==null?”“:request.getParamter(”name“)%>"同上检查是否name被占用调用 CustomerDAO的getCountWithName(String name)获取name在数据库是否存在long count=CustomerDAO.getCoun...

2018-02-28 18:59:25 1252

原创 mvc删除操作

1.什么时候使用重定向若目标页面不需要读取当前请求的request属性,就可以使用重定向重定向到query.do 将显示删除后的Customer的list2.确定要删除吗index。jsp中$(function(){        $(".delete").click(function(){            var content=$(this).parent().parent().find...

2018-02-28 13:58:03 1608 5

原创 mvc之模糊查询

模糊查询String sql="select id,name,phone from customer where name like ? and phone like ?"1.为什么要新建一个CriteriaCustomer类需要在CustomerDAO接口中定义一个getForListWithCriteriaCustomer(CriteriaCustomer cc)其中CriteriaCusto...

2018-02-27 18:44:11 1464

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除