上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 22 下一页
摘要: Json将字符串转换成对象输出 <%-- Created by IntelliJ IDEA. User: tomel Date: 2022/5/31 Time: 14:44 To change this template use File | Settings | File Templates. - 阅读全文
posted @ 2022-05-31 16:48 爱豆技术部 阅读(222) 评论(0) 推荐(0)
摘要: Json格式说明 JSON.parse(pool)将字符串转换成对象, <%-- Created by IntelliJ IDEA. User: tomel Date: 2022/5/30 Time: 9:06 To change this template use File | Settings 阅读全文
posted @ 2022-05-30 20:42 爱豆技术部 阅读(69) 评论(0) 推荐(0)
摘要: HttpSessionActivationListener下的对序列化接口的钝化和活化 sessionWillPassivate钝化是指将Serializable接口经常文件存储到磁盘 sessionDidActivate活化是指将生成的文件读取到session域中进行使用, 说明:原本sessio 阅读全文
posted @ 2022-05-30 11:51 爱豆技术部 阅读(62) 评论(0) 推荐(0)
摘要: WebListener显示访问数量 getServletContext通过创建域来显示访问数量 package com.msb; import javax.servlet.ServletContext; import javax.servlet.annotation.WebListener; imp 阅读全文
posted @ 2022-05-29 22:03 爱豆技术部 阅读(38) 评论(0) 推荐(0)
摘要: 设置访问记录 通过实现ServletRequestListener;强转成父类HttpServletRequest获取各类信息 通过io流进行输入文件 package com.msb; import javax.servlet.ServletRequestEvent; import javax.se 阅读全文
posted @ 2022-05-29 18:38 爱豆技术部 阅读(63) 评论(0) 推荐(0)
摘要: 通过过滤器Filter设置登录访问 当登录过则可以持续访问登录页,否则需要进行登录 package com.msb; //过滤器编写 import org.apache.catalina.connector.Request; import org.apache.catalina.connector. 阅读全文
posted @ 2022-05-29 18:35 爱豆技术部 阅读(53) 评论(0) 推荐(0)
摘要: 通过jsp与el对数据进行查询 servlet对数据进行连接 package com.mab.sevelet; import com.mab.dao.EmpDao; import com.mab.dao.impl.EmpDaoImpl; import com.mab.pojo.Emp; import 阅读全文
posted @ 2022-05-28 11:27 爱豆技术部 阅读(63) 评论(0) 推荐(0)
摘要: 通过jsp绘制表格 <%-- Created by IntelliJ IDEA. User: tomel Date: 2022/5/26 Time: 10:15 To change this template use File | Settings | File Templates. --%> <% 阅读全文
posted @ 2022-05-26 15:02 爱豆技术部 阅读(1078) 评论(0) 推荐(0)
摘要: 通过Session实现用户登录功能 当客户输入正确的密码是可以一直重复访问内容;否则一直输入密码直到正确为止 package com.mab.servlet; import com.mab.pojo.User; import javax.servlet.ServletException; impor 阅读全文
posted @ 2022-05-25 17:31 爱豆技术部 阅读(806) 评论(0) 推荐(0)
摘要: 利用JsessionID实现两端的持久通信 当客户ServeC第一次访问第一次访问服务ServeB时是没有JsessionID的;但ServeB中的HttpServlet会生成一个JsessionID给到ServeC;下次访问时ServeB就可以通过获取ServeC的JsessionID查看他的信息 阅读全文
posted @ 2022-05-25 15:45 爱豆技术部 阅读(59) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 22 下一页