预览模式: 普通 | 列表
08-07
31

ERROR - Error creating form bean of class com.blur

javax.servlet.jsp.JspException: Exception creating bean of class com.blur.myStruts.form.productForm: {1}

struts-config.xml配置文件中的<form-bean>没有定义正确,

本次我是写成了这样

   <form-bean name="productForm"
            type="com.blur.myStruts.form.productForm" />

查看更多...

Tags: creating form

分类:Struts | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1712
08-07
30

HTML code

下面是php手册里摘录的

HTML code
序列 含义
\n 换行(LF 或 ASCII 字符 0x0A(10))
\r 回车(CR 或 ASCII 字符 0x0D(13))
\t 水平制表符(HT 或 ASCII 字符 0x09(9))
\\ 反斜线
\$ 美元符号

查看更多...

Tags: HTML code

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 457
08-07
29

玩玩字符串方法

判断是否为数字组成的字串  
    
      public   static   boolean   isNumber(String   validString){  
              byte[]   tempbyte=validString.getBytes();  
              for(int   i=0;i<validString.length();i++)   {  
                      //by=tempbyte;  
                      if((tempbyte[i]<48)||(tempbyte[i]>57)){  
                              return   false;  
                      }  
[/i][/i]

查看更多...

Tags: 字符串

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 466
08-07
29

利用sql批处理做SEO优化

dede_archives

id,title,body

要求:
查找title(标题)不以“【”开头的记录。
找到这些记录后,在标题最前面加入【你好北京】

begin

查看更多...

Tags: SEO

分类:Database | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 654
08-07
28

Hibernate下各种Cache的缓存配置和特性

You have the option to tell Hibernate which caching implementation to use by specifying the name of a class that implements org.hibernate.cache.CacheProvider using the property hibernate.cache.provider_class.
 我整理了下,具体看下面的表格
Cache Provider class Type Cluster Safe Query Cache Supported
Hashtable
(not intended for production use)
org.hibernate.
cache.HashtableCacheProvider
memory   yes
EHCache org.hibernate.
cache.EhCacheProvider
memory, disk   yes
OSCache org.hibernate.
cache.OSCacheProvider
memory, disk   yes
SwarmCache org.hibernate.
cache.SwarmCacheProvider
clustered (ip multicast) yes (clustered invalidation)  
JBoss TreeCache org.hibernate.
cache.TreeCacheProvider
clustered (ip multicast), transactional yes (replication) yes (clock sync req.)

 

 

 

Tags: Cache 缓存配置 特性

分类:Hibernate | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 686
08-07
28

java中处理时间相加问题

方法一:
package com.blur.bean.time;
public class sortTime {
    public static void main(String[] args) {
    String time1 = "12:45";
    String time2 = "0:1";
    String time3 = "";
    try {
        time3 = testAddTime(time1, time2);

查看更多...

Tags: 时间 相减 相加

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 780