会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
ziq711
上一页
1
···
4
5
6
7
8
9
10
11
12
···
14
下一页
Struts框架的使用初步
摘要: Struts框架的使用初步: A:Apache下载struts.2.1.8.rar包。 B:解压空工程,进入apps目录。 C:将struts2的基本jar包拷到工程的lib目录中。 D:配置web.xml,加载struts2的过滤器 E:加载struts的配置文件struts.xml到src目录。
阅读全文
posted @ 2017-02-04 13:11 ziq711
阅读(111)
评论(0)
推荐(0)
编辑
Ajax乱码
摘要: 1:文本的GET乱码解决 1:客户端发送数据,服务端的处理: A:server.xml中配置URLEncoding="GBK"; B:软编码 username = new String(username.getBytes("ISO-8859-1"),"GBK"); 2:客户端接收数据 服务端设置re
阅读全文
posted @ 2017-01-17 23:53 ziq711
阅读(120)
评论(0)
推荐(0)
编辑
tomcat 虚拟目录 连接池
摘要:
阅读全文
posted @ 2017-01-17 13:46 ziq711
阅读(78)
评论(0)
推荐(0)
编辑
读取工程路径
摘要:
阅读全文
posted @ 2017-01-16 10:35 ziq711
阅读(81)
评论(0)
推荐(0)
编辑
过滤器
摘要: 过滤器: 对用户请求的数据进行过滤,然后将过滤后的数据再发到WEB组件。 过滤器的开发、配置、部署、运行阶段。 过滤链的作用:负责将过滤后的数据传递到下一个过滤器,如果没有下一个过滤器, 数据将直接到达WEB组件。 配置: A:一个对滤器可以对应多个过滤器的映射。 B:过滤器的生命周期与Servle
阅读全文
posted @ 2017-01-12 22:47 ziq711
阅读(106)
评论(0)
推荐(0)
编辑
WEB组件之间的关系
摘要: WEB组件之间的关系: A:重定向的特点: 1:发生客户端 2:地址栏发生变化 3:两个WEB组件不共享request的数据。 4 重定向只能传递文本类型数据 服务端的方法:response.sendRedirect(); 服务端的方法:response.sendRedirect("相对路径");
阅读全文
posted @ 2017-01-09 22:54 ziq711
阅读(128)
评论(0)
推荐(0)
编辑
request.getParamer()
摘要: eturns the value of a request parameter as a String, or null if the parameter does not exist. Request parameters are extra information sent with the r
阅读全文
posted @ 2017-01-09 22:41 ziq711
阅读(295)
评论(0)
推荐(0)
编辑
Response
摘要: ServletRresponse/HttpServletRespon //清缓存。//HTML的清缓存<meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><m
阅读全文
posted @ 2017-01-09 20:58 ziq711
阅读(135)
评论(0)
推荐(0)
编辑
servelt乱码问题(tomcat服务端编码为ISO-8859-1)
摘要: Post的编码决定机制: <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> A:request.setCharacterEncoding("服务端的编码")__硬编码 B:重新构建新的编码。____软编码 u
阅读全文
posted @ 2017-01-09 20:29 ziq711
阅读(305)
评论(0)
推荐(0)
编辑
Servlet中的常用类以及常用方法
摘要: A:ServletConfig:用于读取Servlet在web.xml中配置的一些信息。 getServletName(); getInitParameter();只能是Servlet自身下的参数设置。 getInitParameterNames(); B:ServletContext对象:用于操作
阅读全文
posted @ 2017-01-05 13:55 ziq711
阅读(353)
评论(0)
推荐(0)
编辑
上一页
1
···
4
5
6
7
8
9
10
11
12
···
14
下一页
导航
博客园
首页
联系
订阅
管理
公告