自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(1)
  • 资源 (2)
  • 收藏
  • 关注

原创 使用md5分块上传大文件

效果图: 代码:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> </head> <body> <form method="POST" enctype="multipart/form-data" onsubmit="return false;" > <in

2018-02-28 16:23:23 2204 2

DREAWERA 8

PPT 以DW8为例介绍了网站设计的静和动态部分

2015-01-09

20111009_maven3+S3S2JPA2_nullPointError_babasportrefactoring

package com.itcast.web.action.product; import com.itcast.bean.QueryResult; import com.itcast.bean.product.ProductType; import com.itcast.service.product.ProductTypeService; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Controller; @Controller("/control/product/type/JsonTable") public class JsonTable { //Your result List private List<ProductType> gridModel; //get how many rows we want to have into the grid - rowNum attribute in the grid private Integer rows = 10; //Get the requested page. By default grid sets this to 1. private Integer page = 1; // sorting order - asc or desc private String sord; // get index row - i.e. user click to sort. private String sidx; // Search Field private String searchField; // The Search String private String searchString; // he Search Operation ['eq','ne','lt','le','gt','ge','bw','bn','in','ni','ew','en','cn','nc'] private String searchOper; // Your Total Pages private Integer total = 0; // All Record private Integer records = 0; @Resource(name = "productTypeServiceBean") private ProductTypeService productTypeService; public String execute() { int to = (getRows() * getPage()); int from = to - getRows(); QueryResult<ProductType> qr = productTypeService.getScrollData( ProductType.class, from, to, "o.visible=?1", new Object[]{true}); setRecords((Integer) qr.getTotalrecord().intValue()); setGridModel(qr.getResultlist()); //calculate the total pages for the query setTotal((Integer) (int) Math.ceil((double) getRecords() / (double) getRows())); return "success"; } public String getJSON() { return execute(); } /** * @return the gridModel */ public List<ProductType> getGridModel() { return gridModel; } /** * @param gridModel the gridModel to set */ public void setGridModel(List<ProductType> gridModel) { this.gridModel = gridModel; } /** * @return the rows */ public Integer getRows() { return rows; } /** * @param rows the rows to set */ public void setRows(Integer rows) { this.rows = rows; } /** * @return the page */ public Integer getPage() { return page; } /** * @param page the page to set */ public void setPage(Integer page) { this.page = page; } /** * @return the sord */ public String getSord() { return sord; } /** * @param sord the sord to set */ public void setSord(String sord) { this.sord = sord; } /** * @return the sidx */ public String getSidx() { return sidx; } /** * @param sidx the sidx to set */ public void setSidx(String sidx) { this.sidx = sidx; } /** * @return the searchField */ public String getSearchField() { return searchField; } /** * @param searchField the searchField to set */ public void setSearchField(String searchField) { this.searchField = searchField; } /** * @return the searchString */ public String getSearchString() { return searchString; } /** * @param searchString the searchString to set */ public void setSearchString(String searchString) { this.searchString = searchString; } /** * @return the searchOper */ public String getSearchOper() { return searchOper; } /** * @param searchOper the searchOper to set */ public void setSearchOper(String searchOper) { this.searchOper = searchOper; } /** * @return the total */ public Integer getTotal() { return total; } /** * @param total the total to set */ public void setTotal(Integer total) { this.total = total; } /** * @return the records */ public Integer getRecords() { return records; } /** * @param records the records to set */ public void setRecords(Integer records) { this.records = records; } //Getters and Setters for Attributes }

2015-01-09

空空如也

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

TA关注的人

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