随笔分类 -  javaweb

1
摘要:文件下载 package com.ding.servlet; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.annotation.WebSer 阅读全文
posted @ 2021-08-11 21:29 丁帅帅dss 阅读(162) 评论(0) 推荐(0)
摘要:文件上传 package com.ding.servlet; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileUploadException; import org.apa 阅读全文
posted @ 2021-08-11 19:51 丁帅帅dss 阅读(59) 评论(0) 推荐(0)
摘要:监听器 统计网站在线人数 package com.ding.listener; import javax.servlet.ServletContext; import javax.servlet.annotation.WebListener; import javax.servlet.http.Ht 阅读全文
posted @ 2021-08-11 15:38 丁帅帅dss 阅读(141) 评论(0) 推荐(0)
摘要:过滤器 1.处理中文乱码 xml配置实现 web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2 阅读全文
posted @ 2021-08-11 11:02 丁帅帅dss 阅读(379) 评论(0) 推荐(1)
摘要:1 package util; 2 3 import sun.misc.BASE64Encoder; 4 5 import java.security.MessageDigest; 6 import java.security.NoSuchAlgorithmException; 7 8 /** 9 阅读全文
posted @ 2021-06-03 15:50 丁帅帅dss 阅读(41) 评论(0) 推荐(0)
摘要:1 <%-- 2 User: 丁帅帅 3 Date: 21/06/03 4 Time: 14:43 5 To change this template use File | Settings | File Templates. 6 --%> 7 <%@ page contentType="text/ 阅读全文
posted @ 2021-06-03 15:49 丁帅帅dss 阅读(244) 评论(0) 推荐(1)
摘要:<%@ page import="java.util.ArrayList" %> <%@ page import="java.util.List" %><%-- User: 丁帅帅 Date: 21/05/30 Time: 11:30 To change this template use File 阅读全文
posted @ 2021-06-02 17:15 丁帅帅dss 阅读(31) 评论(0) 推荐(0)
摘要:<%@ page import="java.util.ArrayList" %> <%@ page import="java.util.List" %><%-- User: 丁帅帅 Date: 21/05/30 Time: 10:00 To change this template use File 阅读全文
posted @ 2021-05-30 11:28 丁帅帅dss 阅读(46) 评论(0) 推荐(0)
摘要:1 <%-- 2 User: 丁帅帅 3 Date: 21/05/27 4 Time: 14:39 5 To change this template use File | Settings | File Templates. 6 --%> 7 <%@ page contentType="text/ 阅读全文
posted @ 2021-05-27 19:48 丁帅帅dss 阅读(115) 评论(0) 推荐(0)
摘要:1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html> 4 <html> 5 <head> 6 <meta charset="UTF-8" 阅读全文
posted @ 2021-05-21 23:26 丁帅帅dss 阅读(89) 评论(0) 推荐(0)
摘要:1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html> 4 <html> 5 <head> 6 <meta charset="UTF-8" 阅读全文
posted @ 2021-04-22 21:00 丁帅帅dss 阅读(91) 评论(0) 推荐(0)
摘要:1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html> 4 <html> 5 <head> 6 <meta charset="UTF-8" 阅读全文
posted @ 2021-04-18 17:20 丁帅帅dss 阅读(222) 评论(0) 推荐(0)
摘要:1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html> 4 <html> 5 <head> 6 <meta charset="UTF-8" 阅读全文
posted @ 2021-04-18 16:01 丁帅帅dss 阅读(142) 评论(0) 推荐(0)
摘要:1 <%@page import="java.sql.*"%> 2 <%@ page language="java" contentType="text/html; charset=UTF-8" 3 pageEncoding="UTF-8"%> 4 <!DOCTYPE html> 5 <html> 阅读全文
posted @ 2021-04-18 15:59 丁帅帅dss 阅读(44) 评论(0) 推荐(0)
摘要:1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html> 4 <html> 5 <head> 6 <meta charset="UTF-8" 阅读全文
posted @ 2021-04-11 17:48 丁帅帅dss 阅读(244) 评论(0) 推荐(0)
摘要:1 <%@page import="java.sql.*"%> 2 <%@ page language="java" contentType="text/html; charset=UTF-8" 3 pageEncoding="UTF-8"%> 4 <!DOCTYPE html> 5 <html> 阅读全文
posted @ 2021-04-11 16:24 丁帅帅dss 阅读(203) 评论(0) 推荐(0)
摘要:ResultSet的isLast() 解决方法: 在报出“java.sql.SQLException: 对只转发结果集的无效操作: isLast ” 之前。 PreparedStatement ps = conn.prepareStatement(sql); 改为下就不会报出这个异常 Prepare 阅读全文
posted @ 2021-04-11 16:13 丁帅帅dss 阅读(304) 评论(0) 推荐(0)
摘要:1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html> 4 <html> 5 <head> 6 <meta charset="UTF-8" 阅读全文
posted @ 2021-04-05 13:13 丁帅帅dss 阅读(55) 评论(0) 推荐(0)
摘要:1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html> 4 <html> 5 <head> 6 <meta charset="UTF-8" 阅读全文
posted @ 2021-04-05 12:48 丁帅帅dss 阅读(45) 评论(0) 推荐(0)
摘要:1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html> 4 <html> 5 <head> 6 <meta charset="UTF-8" 阅读全文
posted @ 2021-04-05 12:44 丁帅帅dss 阅读(117) 评论(0) 推荐(0)

1