2014年5月28日
摘要: 1 cookie存取: 2 存: Cookie cookie = new Cookie("title",URLEncoder.encode("标题","utf-8")) 3 cookie.setMaxAge(365 * 24 * 60 * 60); 4 res... 阅读全文
posted @ 2014-05-28 22:39 wf110 阅读(1612) 评论(0) 推荐(0) 编辑
摘要: user 1 public class User implements Serializable{ 2 private String username; 3 private String nick; 4 private String password; 5 publi... 阅读全文
posted @ 2014-05-28 22:35 wf110 阅读(2193) 评论(0) 推荐(0) 编辑
摘要: 1 public static String encode(String str) 2 { 3 String code=null; 4 try { 5 MessageDigest digest=MessageDigest.ge... 阅读全文
posted @ 2014-05-28 22:12 wf110 阅读(332) 评论(0) 推荐(0) 编辑
摘要: jsp页面中 FileItem的用法http://blog.csdn.net/smallhorn/article/details/7864658 1.boolean isFormField()。isFormField方法用来判断FileItem对象里面封装的数据是一个普通文本表单字段,还是... 阅读全文
posted @ 2014-05-28 11:09 wf110 阅读(1163) 评论(0) 推荐(0) 编辑