复习day12-23
获取请求中的内容:
request.getParameter();
get方式因为在地址栏所以需要转码:
String name = new String(req.getparameter().getbytes(“iso-8859-1”),”utf-8”);
请求有cookie
响应有session cookie
servletconfig servlet配置对象,对一个servlet
servletcontext 对一个web项目
getcontextpath web应用路径
通过request.getContextPath也可以获取
getrealpath web应用的资源文件
request
cookie
session
getSession(true),没有session创建session
getSession(false),没有session返回null
jsp
<% %>
<%= %>
<%! %>
内置对象就是在jsp页面加载之后创建的对象,方便程序员调用,不用再次创建。
request response page pageContext config application exception out session
因为把其他八个对象都封装进pageContext对象中,故经常写出pageContext.request.contextPath. 这里面的contextPath就是在el表达式中把get去掉
ServletContext 同一个web程序
HttpServletRequest 同一个请求
HttpSession 同一个会话
pageContext 同一个页面 (当前页面)
pagetContext.setAttribute(“”,域范围常量);
EL表达式
${} 去掉get 驼峰
自定义标签 需要继承simpleTagSupport
数据库
not null
unique
zerofull primary key auto_increment
最后一个,之后再写constraint 本表_外表_pk foreign key( ) references 外表( );
right out join
JDBC
BeanUtils
DBUtils
QueryRunner
DBCP
BasicDataSource
C3P0
ComPooledDataSource
Filter
Listener
ServletSessionListener
HttpServletRequestListener
ServletContextListener
ServletSessionAttributeListener
HttpServletRequestAttributeListener
ServletContextAttributeListener
HttpSessionBindingListener
FileUpload
最新文章
- 实战weblogic集群之创建domain,AdminServer
- AIX LVM学习笔记
- MUI——页面的创建、显示、关闭
- centos6.5安装禅道
- HDU1251 字典树板子题
- 剑指Offer_编程题_3
- hashtable——散列表
- [IOI2018] seats 排座位
- 【webpack】webpack.base.conf.js基础配置
- VREP中使用其它Lua库
- 仿饿了吗点餐界面两个ListView联动效果
- 由Handle转换为控件
- Maven项目中Spring整合Mybatis
- CentOS 7.2搭建xl2tp服务器
- gradle创建spring-boot项目
- Visual Studio 2013中使用Ribbon For WPF
- 生产者与消费者-N:N-基于list
- cfq调度器
- YUV420视频上面添加字幕
- uva11584 Partitioning by Palindromes
热门文章
- VC内存溢出一例 –- 调用约定不一致 (_CRT_DEBUGGER_HOOK(_CRT_DEBUGGER_GSFAILURE)
- Inno Setup 安装inf文件的一个例子
- HTTP based RESTful APIs - asp.net web api
- 如何将Oracle安装为Linux服务
- 【POJ 3669 Meteor Shower】简单BFS
- 创立Est•Design华服高级成衣定制工作室 - 北京服装学院-莱佛士国际学院
- #include <;list>;
- android笔记1——开发环境的搭建
- CheckBoxPreference组件
- Bootstrap 简洁、直观、强悍、移动设备优先的前端开发框架,让web开发更迅速、简单。