- 浏览: 215934 次
- 性别:
- 来自: 广州
-
最新评论
-
liuyanpersonal:
你好啊
单元测试SpringMVC带文件上传的controller -
kkgoing:
teamPhotoController 这个Controlle ...
单元测试SpringMVC带文件上传的controller -
尘枉_yjava:
gwt-ext Out of memory解决办法?? 亲,办 ...
gwt-ext Out of memory解决办法 -
张传龙:
多谢大侠,我找了好久才找到
单元测试SpringMVC带文件上传的controller -
argel_lj:
关键是提示这些信息,而且后面还提示build successf ...
maven经常报Unable to find resource in repository
文章列表
Exercise 1.8. Newton's method for cube roots is based on the fact that if y is an approximation to
the cube root of x, then a better approximation is given by the value
(x/y2+2y)/3
Use this formula to implement a cube-root procedure analogous to the square-root procedure. (In
section 1.3.4 we will ...
- 2009-03-06 16:22
- 浏览 754
- 评论(0)
可以采用cookies和sessionid的做法,这里是使用sessionid的做法。
使用HttpSessionListener来监听session的创建和销毁,集群内部的tomcat开启session复制。2个应用都试用HttpSessionListener来监听
web.xml:
<listener>
<listener-class>com.com.ActiveUserListener2</listener-class>
</listener>
<distributable/>
ActiveUserListen ...
- 2009-02-13 16:46
- 浏览 1484
- 评论(0)
for %I in (*.jpg) do convert %I -resize 130x130 -quality 85% +profile "*" %~nI.jpg
- 2009-02-11 13:58
- 浏览 1738
- 评论(0)
<Directory "D:/java/xx/picphoto/">
Options SymLinksIfOwnerMatch
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://localhost.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|JPG)$ http://www.xx.cn/images/xx.gif [R,NC]
</Directory>
- 2009-02-09 11:44
- 浏览 863
- 评论(0)
$wget http://labs.xiaonei.com/apache-mirror/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz
$sudo tar zxvf apache-tomcat-6.0.18.tar.gz -C /opt
在/etc目录下
$gedit environment
加入
classpath=/lzj/桌面/jdk.1.6.0_10/lib
JAVA_HOME=/lzj/桌面/jdk.1.6.0_10/
在/opt/apache-tomcat-6.0.18/bin目录下
$sudo ./startup.sh ...
- 2009-02-08 21:31
- 浏览 1388
- 评论(0)
之前一直正常使用的swfupload突然用不了,这是由于flash play10的缘故。所以需要升级到对应的swfupload 2.2.0
升级必须要做的:
更换swfupload.swf、swfupload.js、default.css
将原来的onClick="swfu.selectFiles();的按钮修改为:<span id="spanButtonPlaceholder" ></span>
在setting里加多:
button_image_url : "images/XPButtonNoText_160x22 ...
- 2009-01-19 15:42
- 浏览 1264
- 评论(0)
$sudo apt-get install sun-java6-jdk
- 2008-11-23 12:53
- 浏览 833
- 评论(0)
ubuntu8.10 :
$sudo apt-get update
$sudo aptitude install scim-pinyin
$sudo apt-get apt-get install scim
$sudo apt-get apt-get install scim-pinyin
$sudo apt-get apt-get install scim-chinese
- 2008-11-22 21:41
- 浏览 1018
- 评论(0)
先写入一行作为表格头部,然后查询取得一个list,然后循环并调用createCell方法放入excel表中:
public void CreateExcel(String filename){
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("new sheet");
HSSFRow row = sheet.create ...
- 2008-11-17 11:32
- 浏览 1248
- 评论(0)
客户端使用jquery,设置了上一页和下一页作为分页并显示总页数和当前页数,并把返回的json用div+span显示:
$.ajaxSetup({
beforeSend: function() {
$("#back").html('<img src="loading.gif">');
},
complete: function() {},
error:function(){$("#back").html('<font color="red">read data error..</fon ...
- 2008-11-14 11:49
- 浏览 1002
- 评论(0)
基于上一篇日志的实例的基础上修改:
CRUDService.java:
package client;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.core.client.GWT;
public interface CRUDService extends RemoteService {
Student[] getStudent(String PageNum) ...
- 2008-11-08 15:25
- 浏览 1355
- 评论(0)
CRUD.gwt.xml:
<module>
<inherits name='com.google.gwt.user.User'/>
<entry-point class='client.CRUD'/>
<servlet path="/CRUD/CRUDService" class="server.CRUDServiceImpl"/>
</module>
EntryPoint:CRUD.java,使用VerticalPanel 来显示List:
package clien ...
- 2008-11-06 07:28
- 浏览 1157
- 评论(0)
upload.jsp:
在这个文件里,使用了新swfload的上传方式,将文件流发送到struts2的doMultipleUploadUsingList.action,uploadStart的这个function,是将页面上的"id"元素的值一起带过去,上传过程中,会在divStatus的DIV中显示上传进度条。
<%@ page contentType="text/html; charset=utf-8"%>
<html>
<head>
<!DOCTYPE html PUBLIC "-//W3C/ ...
- 2008-11-02 06:25
- 浏览 1995
- 评论(1)
前台使用SWFUpload:
<%@ page contentType="text/html; charset=GBK"%>
<%@ page import="javax.servlet.*"%>
<%@ page import="javax.servlet.http.*"%>
<%@ page import="com.yourcompany.util.*"%>
<html>
<head>
<link href="js/d ...
- 2008-08-13 11:57
- 浏览 1363
- 评论(0)
<bean id="authenticationProcessingFilter"
class="com.pixel.hibernate.HomeAloneAuthenticationProcessingFilter">
<property name="authenticationManager">
<ref bean="authenticationManager" />
</pr ...
- 2008-07-28 12:11
- 浏览 1102
- 评论(0)