• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
nicesoft
博客园    首页    新随笔    联系   管理    订阅  订阅
2011年12月18日
struts2 select 自动选中 不换行
摘要: <s:select name="user.sex" list="#{0:'女',1:'男'}" value="${user.sex}" theme="simple"></s:select>加上theme="simple" 不会自动换行了使用map初始化action: List listValue=new ArrayList(); Map d=new HashMap(); d.put("k",0); d.put(" 阅读全文
posted @ 2011-12-18 22:05 nicesoft 阅读(2282) 评论(0) 推荐(0)
java生成缩略图
摘要: package com.hunuo.common;import java.awt.Image;import java.awt.image.BufferedImage;import java.io.File;import java.io.FileOutputStream;import javax.imageio.ImageIO;import com.sun.image.codec.jpeg.JPEGCodec;import com.sun.image.codec.jpeg.JPEGImageEncoder;public class ImageUtil { /** * 生成缩略图 * @par.. 阅读全文
posted @ 2011-12-18 16:54 nicesoft 阅读(5244) 评论(0) 推荐(0)
struts2上传文件
摘要: // 上传的文件 private File file; private String fileContentType;// 文件类型 private String fileFileName;// 文件名 public void setFile(File file) { this.file = file; } public void setFileContentType(String fileContentType) { this.fileContentType = fileContentType; } public void setFileFileName(String fileFile... 阅读全文
posted @ 2011-12-18 16:53 nicesoft 阅读(203) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3