`
Java_大猫
  • 浏览: 170219 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论
文章列表

spring mail 例子

<!-- Send Email Helper --> <bean id="javaMailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"> <property name="protocol" value="smtps" /> <property name="host" value="smtp.gmail.com" /& ...
< project name="hnwt114" default="build" basedir="."> <!-- 工程根目录 --> <property name="hnwt144.home" value="."/> <!-- 工程根名 --> <property name="hnwt144.name" value="HNWT114"/> ...
最近在看这方面的知识,初学者一起分享 public class LuceneTest { File filePath = new File("D:\\uploadfiles"); File indexPath = new File("D:\\luceneIndex"); //创建分词器 Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_35); //建立索引的配置类,包含了一个解析器 IndexWriterConf ...
/** * 将yyyy-MM-dd 转成yyyyMMdd * @param str * @returns */ function dateFormatString(str){ return str.replace(/-/g,''); } //取某一天为星期几 new Date('2012-01-01').getDay() //取某月份的最后一天 new Date('2012','02',0).getDate() /** * 获取多少天前的时间 */ function getYestoday(day){ var date = new Da ...
和所有的新人一起分享: public static void main(String[] args) { java.text.SimpleDateFormat format = new java.text.SimpleDateFormat("yyyy-MM-dd"); List<String> list = new ArrayList<String>(); for(int i=0;i<100;i++){ Calendar cal = Calendar.getInstance(); cal.add(Ca ...

文件下载

    博客分类:
  • J2SE
public void publicDownFileCommon(HttpServletResponse response, HttpServletRequest request, String fullPath, String orgName) throws IOException { BufferedInputStream bis = null; BufferedOutputStream bos = null; try { request.setCharacterEncoding("UTF-8"); // String ...
private static String getCellTypeForDate(Cell cellObject) { String dateStr=""; if(cellObject.getType()==CellType.DATE){ DateCell cellValue = (DateCell)cellObject; Date dt = cellValue.getDate(); SimpleDateFormat formatter = new SimpleDat ...
之前做了一个 要将提交的数据显示在一个iframe 中的JSP页面。 上面一个表单。下面是一个List 。因为是维护的东西。设计并不是我做的。list页面是放在一个iframe中 也就是 页面情况这样: <form > <input type ="text"> <input type ="button" value=提交> </from> <iframe name="ItemFrm" scrolling="auto" width="115 ...
INSERT INTO STORE_INFO_TABLE(GOOD_ID,MAIN_ID,MINOR_ID,GOOS_COUNT,UNIT,USER_ID,INDATE) VALUES('GS00001','MA00001','MI00001','5','G','1','2012-01-14') ON DUPLICATE KEY UPDATE GOOS_COUNT=GOOS_COUNT+'5'
最近写上传文件,用到了这个东西,我想很多人对这个并不陌生。 下面贴出代码。 commons-fileupload 在struts1.x中的应用方法 DynaActionForm uf = (DynaActionForm) form; FormFile file = (FormFile) uf.get("file"); System.out.println(file.getFileName()); String trackno=request.getParameter("trackno"); ...

禁止IE backspace

$(document).keydown(function(e){ var target = e.target ; var tag = e.target.tagName.toUpperCase(); if(e.keyCode == 8){ if((tag == 'INPUT' && !$(target).attr("readonly"))||(tag == 'TEXTAREA' && !$(target).attr("readonly") ...
今天遇到的一个JSTL 判断问题,发出来纪念下 <c:forEach var="edlist" items="${元素集合}"> <c:if test="${值 == edlist}"> 存在 </c:if> </c:forEach>
//验证城市是否重复 function validateCity(){ var flag=false; var array = []; $("select[name='city']").each(function(index, item) { if(array.isExist($(item).val())) { flag=true; } else array.push($(item).val()); }); return flag; } 城市下拉1:上海 城市下拉2:上海 当有重复的时候。 ...

[转]Jbmp5资料

    博客分类:
  • jbpm
http://wenku.baidu.com/view/5ccd6a8302d276a201292e05.html?from=rec&pos=2&weight=33&lastweight=23&count=5
当一条记录 在数据库中存在进行更新,否则进行插入的时候 oralce 中可以通过merge merge into AB_TABLE t1 using (select SHORTPN, HSCODE, LONGNAME, NAMECN from A_TABLE) t2 on (t1.SHORTPN = t2.SHORTPN) when matched then update set t1.HSCODE = t2.HSCODE, t1.LONGNAME = t2.LONGNAME, t1.NAMECN = t2.NAMECN when not matched then ...
Global site tag (gtag.js) - Google Analytics