会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lwx_R
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
34
35
36
37
38
39
40
41
42
···
46
下一页
2022年4月21日
JSP 包含操作
摘要: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>JSP2</title> </head> <body> <%-- 包含操作:吧重复代码包含进来继续使用,将各区域分成独立文件
阅读全文
posted @ 2022-04-21 17:29 轩哥聊码
阅读(27)
评论(0)
推荐(0)
2022年4月17日
JSP 脚本段
摘要: <%-- Created by IntelliJ IDEA. Date: 2022/4/13 Time: 20:06 To change this template use File | Settings | File Templates. --%> <%@ page contentType="te
阅读全文
posted @ 2022-04-17 18:33 轩哥聊码
阅读(40)
评论(0)
推荐(0)
2022年4月13日
下载文件
摘要: package com.xxx.servlet; import jdk.internal.util.xml.impl.Input; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; imp
阅读全文
posted @ 2022-04-13 19:02 轩哥聊码
阅读(408)
评论(0)
推荐(0)
上传文件
摘要: 文件上传 1.表单提交类型为post,表单类型为enctype=“multipart/form-data 2.设置提交地址 action 3.设置表单name /** * 使用注解将Servlet标识为文件上传 * Servlet对表单post请求封装为part对象 */ @WebServlet("
阅读全文
posted @ 2022-04-13 18:59 轩哥聊码
阅读(64)
评论(0)
推荐(0)
ServletContext
摘要: package com.xxxx.servlet; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; impo
阅读全文
posted @ 2022-04-13 18:58 轩哥聊码
阅读(43)
评论(0)
推荐(0)
Session
摘要: Session 每一个连接到服务器的客户端都是session servlet用此接口创建客户端服务器之间的会话 是存在服务端的 优点:安全性高 缺点:session 是保存在服务端的,每个用户都会产生一个session,并发访问多的话,每个用户都会生成session,消耗内存 @WebServlet
阅读全文
posted @ 2022-04-13 18:56 轩哥聊码
阅读(43)
评论(0)
推荐(0)
2022年4月9日
Cookie
摘要: Cookie 只需保存在客户端的数据,放在本地计算机,不需要网络传输,可以减轻服务器负债 安全性差 不能出现中文 除非重新编码 浏览器存储有上限 也不能太大 @WebServlet("/c1") public class Cookie1 extends HttpServlet { @Override
阅读全文
posted @ 2022-04-09 20:50 轩哥聊码
阅读(34)
评论(0)
推荐(0)
Servlet 重定向
摘要: package com.xxxx.servlet; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; im
阅读全文
posted @ 2022-04-09 20:48 轩哥聊码
阅读(46)
评论(0)
推荐(0)
Servlet 响应数据
摘要: package com.xxxx.servlet; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.annotation.WebServlet;
阅读全文
posted @ 2022-04-09 20:45 轩哥聊码
阅读(69)
评论(0)
推荐(0)
Servlet 请求转发
摘要: package com.xxxx.servlet; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; im
阅读全文
posted @ 2022-04-09 20:44 轩哥聊码
阅读(51)
评论(0)
推荐(0)
上一页
1
···
34
35
36
37
38
39
40
41
42
···
46
下一页
公告