- 博客(9)
- 资源 (1)
- 收藏
- 关注
Eclipse下配置Tomcat
JDK下载: http://www.oracle.com/technetwork/java/javase/downloads/index.html(下载Java Platform (JDK)7u15) 或者是下载6.0版本的。 Eclipse官网:http://www.eclipse.org/downloads/ 下载第一个javaEE(无需安装,解压一下就可以了) Tomcat官网:...
2013-02-20 13:52:16
149
原创 C# 小计算器
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namesp...
2012-09-17 17:52:00
346
原创 ajax 小例子
function createXMLHttpRequest() { if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } } ...
2012-09-17 17:33:35
165
原创 SpringMVC中Controller跳转到另一个Controller方法
1、直接Redirect后加 Controller/Action Response.Redirect("/User/Edit"); // return Redirect("/User/Edit"); return RedirectToAction("about","Home"); Response.Redirect("/User/Edit"); ...
2012-09-10 22:19:52
269
原创 java Date型时间比较大小
两个Date类型的变量可以通过compareTo方法来比较。此方法的描述是这样的:如果参数 Date 等于此 Date,则返回值 0;如果此 Date 在 Date 参数之前,则返回小于 0 的值;如果此 Date 在 Date 参数之后,则返回大于 0 的值。 实际上比较的是自1970 年 1 月 1 日 00:00:00 GMT以来的毫秒数。毫秒数越大的时间越大。 String DateS...
2012-09-10 22:17:00
241
原创 java 位数补0处理
数据库中表的ID为4位数字,如:0001,0012,0123,1234 如果插入的值不满足4位,需要进行转换,有两种方法 第一种方法以: int n = 1; NumberFormat formatter = NumberFormat.getNumberInstance(); formatter.setMinimumInteg...
2012-09-10 22:15:44
430
原创 SpringMVC BindingResult例子
SpingMVC中利用BindingResult将错误信息返回到页面中。 ActionFrom中: private String name; private String password; get()/set()....... JSP中: 姓名: 密码: path的属性值和ActionForm中变量的一样的,大...
2012-09-10 22:10:55
242
原创 Java html中bodyonload()方法
后台:request.setAttribute("kotsukikanId", kotsukikanId); request.setAttribute("isLinkFlg", isLinkFlg); 前台 JS: $(function() { function showMsgOnSuccess(isLinkFlg,kots...
2012-09-10 22:08:57
366
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅