`
Java_Sky_Dynasty
  • 浏览: 3843 次
  • 性别: Icon_minigender_1
  • 来自: 合肥
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
1.EL表达式的一个小问题: 在以前使用EL表达式的时候,在JSP页面直接使用就可以了,但昨天我在做项目的时候在JSP页面上的EL表达式不能被识别.如${loginForm.username}在页面上还是显示${loginForm.username},后来我在JSP头上加上<%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030" isELIgnored="false"%>红色这段代码, ...
正则表达式验证: 验证 Email: String filter=/^([a-z]|[A-Za-z0-9]|[-]|[_][.])([A-Za-z0-9])+@([A-Za-z0-9]|[-])+\..+$/ ; 匹配空白行的正则表达式:\n\s*\r 评注:可以用来删除空白行 匹配HTML标记的正则表达式:<(\S*?)[^>]*>.*?</\1>|<.*? /> 评注:网上流传的版本太糟糕,上面这个也仅仅能匹配部分, 对于复杂的嵌套标记依旧无能为力匹配首尾空白字符的正则表达式:^\s*|\s*$ 评注:可以 ...
public class CreateCSVFile extends BaseDAO{ private static CreateCSVFile _createCSVFile = null; private FileOutputStream _fos = null; private StringBuffer _sBuffer = null; private String _path = ""; public static final String DEL_CHAR = ","; public static final String AV ...
Auto Create Table Code: import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.SchemaExport; /** * * @author skyqiang * */ public class ExportDB { public static void main(String[] args) { //read configuration file Configuration config = new Configurat ...
Dynamic Proxy of Spring: import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; public class SecurityHandler implements InvocationHandler{ private Object targetObj; public Object newProxy(Object targetObj) { this.targetObj = ...
Global site tag (gtag.js) - Google Analytics