ITeye博客

blaiu

blaiu · 共 76 篇文章

linux 上安装jdk6.0

第一步:下载相应的JDK 第二步:安装JDK 如果你是root登陆的话 chmod 777 jdk-6u17-linux-i586.bin 第三步:配置环境变量 首先运行命令 vim /etc/profile 出现profile文件源代码。 按键盘子母“i”进入插入模式。 在profile文件中插入以下代码: export JAVA_HOME=/usr/java/jdk1.6.0_17 export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export CLASSPATH=.:/usr/java/lib:/usr/java/jre/lib:$…

2009-12-26 11:28 · Linux · 评论(0)

FCKeditor 在线编辑器

FCKeditor 在线编辑器

2009-09-18 13:35 · Java · 评论(0)

hibernate 过滤器

<hibernate-mapping> <class name="cn.com.transonline.data.HoProductCategory" table="HO_ProductCategory" catalog="HO"> <id name="id" type="java.lang.Integer"> <column name="Id" /> <generator class="assigned" /> </id> <property name="classId" type="java.lang.Integer"> <column name="ClassID" /> </prope…

2009-08-14 13:57 · Hibernate · 评论(0)

验证码

public class OnLineImage { // //验证码图片中可以出现的字符集,可根据需要修改 // private char mapTable[]={ // 'a','b','c','d','e','h', // 'A','B','C','D','E','F', // 'j','k','m','n','p','q', // 'J','K','M','N','P','Q', // 'r','s','t','u','v','w', // 'R','S','T','U','V','W', // 'x','y','z','X','Y','Z', // '2','3','4','5',…

2009-08-07 11:20 · Java · 评论(0)

Cookie

public class Cookies { public int maxAge; // 设置该COOKIE的有效期,单位为秒 public String path; // cookie路径 Cookie[] cookie_get = {}; public Cookies() { // maxAge = -1; maxAge = 60*60*24*14;//两周 // maxAge = 180;//两周 // path = "/"; } /** * Put cookie to the client * * @param response * @param name * @param valu…

2009-08-06 09:42 · Java · 评论(0)

动态获取字段名或方法

public interface Adapter<T> { public abstract void setBean(T bean); public abstract T getBean(); public abstract Method[] getBeanMethods(); public abstract Field[] getBeanFields(); public abstract Object invoke(Method m, Object... args); public abstract List getBeanGetterMethodList(); public abstra…

2009-08-04 08:53 · Java · 评论(0)

Hibernate 分页

public class Pager { private int rows; //总行数 private int pages; //总页数 private int currentPages; //当前页 private int maxResults; //当前显示的行数 private int firstResults; //当前页的首记录 private int currentResults; //当前页的末记录 private int endPages; //当前页显示的最后页数 private int startPages; //当前页显示的起始页数 public Pager() { …

2009-08-04 08:34 · Hibernate · 评论(3)

spring 代理struts的配置

struts-config.xml 配置: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_3.dtd"> <struts-config> <form-beans> <form-bean name="userForm" type="com.hello.web.form.regis…

2009-07-12 11:36 · spring · 评论(0)

spring 事务管理,拦截,权限验证

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.or…

2009-07-12 11:26 · spring · 评论(0)

urlrewrite 路径重写

web.xml 配置: <filter> <filter-name>UrlRewriteFilter</filter-name> <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> <init-param> <param-name>confReloadCheckInterval</param-name> <param-value>30</param-value> </init-param> <init-param> <param-name>logLevel</param-name> <…

2009-07-12 11:18 · Java · 评论(0)

log4j.properties 配置

文件名:log4j.properties ## log4j.rootLogger=error, console, file #设置根目录的日志级别,即你没有特殊设置的目录的日志输出的级别 log4j.rootLogger=error, console,file #设置子目录的输出日志级别 #级别。等级可分为OFF、FATAL、ERROR、WARN、INFO、DEBUG、ALL #off 关闭所有的日志 #all 输出所有级别的日志 log4j.logger.com.jz=debug #org.apache.log4j.ConsoleAppender(控制台), #org.apache.log…

2009-07-12 10:56 · Java · 评论(0)

spring 代理javamail 自动发送注册验证邮件

spring applicationContext.xml 配置: <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"> <property name="host" value="smtp.163.com" /> <property name="port" value="25" /> <property name="username" value="hello@163.com" /> <property name="password" value="hello123" /> <p…

2009-07-12 10:52 · spring · 评论(0)

spring applicationContext.xml配置

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> <bean id="userDA…

2009-07-12 10:41 · spring · 评论(0)

struts-config.xml 配置

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd"> <struts-config> <data-sources/> <form-beans> <form-bean name="userForm" type="cn.com.hello.formBean.UserForm…

2009-07-12 10:36 · Java · 评论(0)

dwr.xml 配置

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN" "http://getahead.org/dwr/dwr20.dtd"> <dwr> <allow> <!-- 配置桌面引用接口 --> <create creator="spring" javascript="hereClasses"> <param name="beanName" value="iReady"/> <include method="getBigC…

2009-07-12 10:30 · JavaScript · 评论(0)