`
文章列表
import org.apache.commons.codec.binary.Base64; public String fileNameFixer(String fileName){ String agent = (String)request.getHeader("USER-AGENT"); String enableFileName = ""; try{ if(agent != null && agent.indexOf("MSIE") == -1) {// FF ...
String agent = (String)request().getHeader("USER-AGENT"); if(agent != null && agent.indexOf("MSIE") == -1) {// FF String enableFileName = "=?UTF-8?B?" + (new String(Base64.encodeBase64(fileName.getBytes("UTF-8")))) + "?="; ...
如题

struts 分页

struts2分页
下载文件时,再弹出下载对话框时,如果用记点击“取消”,有时会报异常 解决方案: 把下载action对应的方法返回类型改成void,不用String
       <action name="fileDownload" class="repTemplateALO" method="fileDownload" >           <result name="success" type="stream">                <param name="encode">true</param>                <param name="co ...

IBM 破解类

    博客分类:
  • IBM
IBM 
请下载附件
#模块日志loggerlog4j.logger.org.springframework.jdbc.core=DEBUG   log4j配置参见http://wzwd111.iteye.com/admin/blogs/654539

JS 日期控件

    博客分类:
  • JS
<script language="javascript" type="text/javascript" src="./js/DatePicker/WdatePicker.js"></script> <input id="txtPublishfrom" type="text" readonly="readonly"/> <img onclick="WdatePicker({el:$dp.$('txtPublishfro ...

进度 跟踪

系统 1级菜单点击没样式 表 建错了 权限设计问题 toad 乱码   用户和员工表怎么关联而且用户表是rolecode,员工表是roleid

PHP basePath

    博客分类:
  • PHP
php 项目根路径 $root = "http://".$_SERVER['HTTP_HOST']."/".substr($_SERVER['PHP_SELF'], 1, strpos(substr($_SERVER['PHP_SELF'], 1), "/"));  
 concat('记账-',convert(v.num,char))

mysql date_format

date_format(v.entrydate,'%m') date_format(v.entrydate,'%d')  

JS 千分符

    博客分类:
  • JS
/** * @param s money * @return 千分符money */ function parseMoney(s){ if(/[^0-9\.]/.test(s)) return "invalid value"; s=s.replace(/^(\d*)$/,"$1."); s=(s+"00").replace(/(\d*\.\d\d)\d*/,"$1"); s=s.replace(".",","); var re=/(\d)(\d ...

java 千分符

    博客分类:
  • JAVA
package org.charwer.framework.util; import java.math.BigDecimal; import java.text.DecimalFormat; public class NumberUtils{ /** *转换方法   * ",###,###.00"  * */ public static String parseMoney(String pattern,BigDecimal bd){  return new DecimalFormat(pattern).format(bd); }  public static Str ...
Global site tag (gtag.js) - Google Analytics