`
zp19827
  • 浏览: 15041 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
一、MyBatis中通过xml文件配置数据库批量操作 <!-- 批量 ,传入一个长度为1000的list --> <insert id="insertBatch" > insert into student ( <include refid="Base_Column_List" /> values <foreach collection="list" item="item" index="index" se ...
一、嵌套的resultMap <?xml version="1.0" encoding="utf8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!--与以前一样,namespace的值是对应的映射器接口的 ...
http://www.antivia.com/xComponents.php     http://scnblogs.techweb.com.cn/
http://www.ibm.com/developerworks/cn/opensource/os-cn-ecl-ofc/ http://sourceforge.net/projects/jfreechart/   http://code.google.com/p/ofcgwt/ http://ofcgwt.googlecode.com/svn/demo/Demo.html http://ofcgwt.googlecode.com/svn/demo/Events.html  

JQuery

    博客分类:
  • JS
解决在Struts中操作checkbox遇到的问题 在Struts中,操作checkbox控件时经常会遇到一些棘手的问题。如果页面上的checkbox初始没有值,这时你点上勾,Action可以取到这个checkbox的值(true)。但一旦formBean取得值,就把它保存下来,即使你点掉,Action得到的值仍然是(true)。换句话说,一旦formBean保存了checkbox的值,无论你在页面怎么点选,Action取得的值不会变。    初次遇到这个问题可能会很迷惑,下面就简单介绍一下解决的办法:    我们知道formBean是继承ActionForm的,在ActionForm中有一个 ...
/** * 初始化附件编辑页面 */ private void initOnlineEdit(HttpServletRequest request, HttpServletResponse response, AttachmentVO attachment, String uploadPath) throws ApplicationException { FileInputStream fileInputStream = null; BufferedInputStream bufferedInputStream = null; Buffer ...
public class WebOfficeAction extends AuthenticAction { /** * 附件在线编辑 */ protected ActionForward doService(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // 获取所在区域ID String catalogId = request.getPar ...
产品网站: http://www.dianju.cn/p/weboffice/ 产品论坛: http://www.dianju.cn/forum/viewforum.php?f=2 下载资料: http://www.dianju.cn/forum/viewtopic.php?f=2&t=2 <%@ page language="java"contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="/W ...

AutoArrayList

    博客分类:
  • Code
import java.util.ArrayList; public class AutoArrayList extends ArrayList<Object>{ private static final long serialVersionUID = 1L; private Class itemClass; public AutoArrayList(Class clz){ this.itemClass = clz; } @Override public Object get(int index) { try{ ...

file download

    博客分类:
  • Code
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddhhmmss"); String fileName = format.format(new Date()); FileInputStream input = null; ServletOutputStream outputStream = null; File file = null; try { file ...

file operate

    博客分类:
  • Code
/** * 获取随机名称(文件) * * @param fileRealName * @return Created:2010-7-30 * @author:WKF28474 */ public static String getRandomName(String fileRealName) { String temp_time = new SimpleDateFormat("yyyyMMddHHmmss") .format(new Date()); String randomName = null; ...
Global site tag (gtag.js) - Google Analytics