04 2013 档案

applicationContext-security
摘要:<?xml version="1.0" encoding="UTF-8"?><beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=&quo 阅读全文

posted @ 2013-04-28 13:52 远方的人 阅读(790) 评论(0) 推荐(0)

tiny_mce编辑器 获得textarea 的值
摘要:获得副文本编辑器textarea 的value值<textareaid="content"></textarea>您要获取正确的值,应该使用如下方法tinyMCE.get(您的文本ID号).getContent().不然你要按提交两次才能获取正确值,如果按照getContent()来获值就可以解决这个问题tinyMCE.get('content').getContent() 阅读全文

posted @ 2013-04-28 12:35 远方的人 阅读(302) 评论(0) 推荐(0)

2013.5.1
摘要:public class TextClass { public TextClass(int i){ } public TextClass(double e){ } public TextClass increatment(){ return this; }}//TextClass c=new TextClass(); 对实体类创建自定义构建器后,默认构建器无法使用//返回当前句柄,即返回当前对象1.浏览器缓存问题 链接缓存问题 可以通过在添加随机数参数 让浏览器区分地址,}else if(vldElementF... 阅读全文

posted @ 2013-04-28 10:27 远方的人 阅读(219) 评论(0) 推荐(0)

邮件发送
摘要:package com.util.mail; /** * 发送邮件需要使用的基本信息 *author by wangfunhttp://www.5a520.cn 小说520 */ import java.util.Properties; public class MailSenderInfo { // 发送邮件的服务器的IP和端口 private String mailServerHost; private String mailServerPort = "25"; // 邮件发送者的地址 privat... 阅读全文

posted @ 2013-04-27 17:19 远方的人 阅读(283) 评论(0) 推荐(0)

读取xml 文档
摘要:例子: //先new xml 读取private static final String CONFIG_PATH="configuration.xml";private static final XmlReader xml=new XmlReader(CONFIG_PATH);public List<CheckBean> jobsel=Constant.rzPerSelJob;public static final List<CheckBean> rzPerSelJob=new ArrayList<CheckBean>(); //静态赋值 阅读全文

posted @ 2013-04-18 15:21 远方的人 阅读(229) 评论(0) 推荐(0)

关于数字
摘要:避免显示时出现科学计数法if(Utils.isBlank(capital)){ DecimalFormat df = new DecimalFormat("0.####"); this.capital=String.valueOf(df.format((double)t.getCapital()/10000)); } 阅读全文

posted @ 2013-04-18 09:42 远方的人 阅读(160) 评论(0) 推荐(0)

java 正则表达式
摘要:表达式意义:1.字符x 字符 x。例如a表示字符a\\ 反斜线字符。在书写时要写为\\\\。(注意:因为java在第一次解析时,把\\\\解析成正则表达式\\,在第二次解析时再解析为\,所以凡是不是1.1列举到的转义字符,包括1.1的\\,而又带有\的都要写两次)\0n 带有八进制值 0的字符 n (0 <= n <= 7)\0nn 带有八进制值 0的字符 nn (0 <= n <= 7)\0mnn 带有八进制值 0的字符 mnn(0 <= m <= 3、0 <= n <= 7)\xhh 带有十六进制值 0x的字符 hh\uhhhh 带有十六进制 阅读全文

posted @ 2013-04-17 16:14 远方的人 阅读(295) 评论(0) 推荐(0)

学会使用class或其他自定义属性同时控制多个标签 ,不要总使用id 进行逐个控制 ,jquery 不易书写
摘要:$(body).find("not(.vnn)").click(function(){ alert("fd"); $("#indestryjiegou").html(""); $("#indestryjiegouEr").html(""); $("#indestryjiegouSan").html(""); });not 不常用 ,因为 not外元素不可控 ,可能会很多而不是$(body).find("not(id=vnn)& 阅读全文

posted @ 2013-04-16 10:52 远方的人 阅读(221) 评论(0) 推荐(0)

让标签的事件失效 ,
摘要:1. 使用unbind 方法 ,jquery 2.阻止冒泡的意思是,html DOM里面的事件,是从最初的点击对象然后逐层向父级Element传递的, 当span点击以后,如果将事件停止了,他自然就不会冒泡了。 $('p').addEvent("click",function(event){ event.stop(); }); function cancelBubble(evt) { // 阻止事件冒泡 if (window.event) { // Chrome,IE6,Opera window.event.cancelBub... 阅读全文

posted @ 2013-04-16 09:56 远方的人 阅读(193) 评论(0) 推荐(0)

jquery  ajaxFileUpload  上传文件方法 , 局部上传
摘要:js 定义集合变量 var a={a:方法,b,方法};var Util = {autoTjSqUpload : function(fileid) { $.ajaxFileUpload({ url : 'apply/memberupload!uploadshenqing', secureuri : false, fileElementId : fileid, dataType : 'json', success : function(data) { if (data.error) { $('#uploadbtn1').val("重... 阅读全文

posted @ 2013-04-15 17:37 远方的人 阅读(397) 评论(0) 推荐(0)

tomcat redeploy 失败 ,which has locked one or more files.
摘要:Undeployment Failure could not be redeployed because it could not be completely removed in the undeployment phase. the most common cuase of this problem is attempting to redeploy while the server is running,which has locked one or more files. to correct the deployment you will need to stop the serve 阅读全文

posted @ 2013-04-12 09:54 远方的人 阅读(432) 评论(0) 推荐(0)

jsp 页面根据路径直接打开.pdf 文件
摘要:<%@ page language="java" import="java.util.*,java.io.*" pageEncoding="UTF-8"%> 导入java.io.* String aa=request.getparameter("url");//直接打开pdfout.clear();out=pageContext.pushBody():response.setContentType("application/pdf");try{ String strpdfPath=n 阅读全文

posted @ 2013-04-11 09:41 远方的人 阅读(784) 评论(0) 推荐(0)

form 总有文件上传时 在form标签中 加入属性
摘要:enctype="multipart/form-data" 文件上传private File logo_path;//机构有效身份证明文件 private String logo_pathContentType;// 上传文件类型 private String logo_pathFileName;// 上传头像文件名称 private static String Upd = StringConverter.getDateTimeToString(new Date()).substring(0,8); public String shenFenupload(){ try { 阅读全文

posted @ 2013-04-09 14:49 远方的人 阅读(642) 评论(0) 推荐(0)

浏览器 类型
摘要:java 中String agent = this.getRequest().getHeader("User-Agent"); boolean isMSIE = (agent != null && agent.indexOf("MSIE") != -1); Firefoxjs 中if (navigator.userAgent.indexOf("Firefox")>0) { // Mozilla, Safari, ... } else if (navigator.userAgent.indexOf("MS 阅读全文

posted @ 2013-04-09 14:13 远方的人 阅读(143) 评论(0) 推荐(0)

jquery 事件绑定
摘要:jsvar indestryblur=function(){}<input type=''text'' onblur="indestryblur"> 这种方法 可能无法理解onblur 事件可以使用 事件绑定加载时绑定 $("document").ready(function(){ $("input:[name=t.industry]").bind("blur",indestryblur); }); //绑定 function indstryunbind(){ //ale 阅读全文

posted @ 2013-04-09 14:06 远方的人 阅读(156) 评论(0) 推荐(0)

客户端代码,服务器端代码
摘要:区分本地js代码和服务端解析后传给本地的代码,,'<s:if test="ss=='+ii+'">' struts 是服务端解析后传入浏览器 ,ii 是本地js ,不能混合使用, 可运用 局部刷新技术实现局部刷新 , 也可以全部解析后在使用js 进行帅选注意: js 和jsp 代码解析的顺序 , var indestryHtmlEr="<s:iterator value='indestryThree'><s:if test='code.substring(0,2)==" 阅读全文

posted @ 2013-04-09 14:02 远方的人 阅读(267) 评论(0) 推荐(0)

导航