摘要: ${}自动从内置对象中查找值须明确指定从哪个对象里取值例 取当前页面的x 值取request中的x值${x}首先从当前页面找有没有x,有就显示它,没有,查找request,再没有就查找session,再没有就查找application再没有,就没办法了,输出空值如果x不存在,会报错${x}就算x不... 阅读全文
posted @ 2016-01-20 14:16 绯云 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 转码可以在页面中或是sevlet以及过滤都可以解决的,下面以页面和servlet为例:方法一:设置 request 和 response 的编码 [ 页面编码必须为 u8 ]request.setCharacterEncoding("UTF-8");//传值编码response.setContent... 阅读全文
posted @ 2015-12-18 16:54 绯云 阅读(169) 评论(0) 推荐(0) 编辑
摘要: /** * 下载文件 * * @param basePath * @throws IOException */ private void downLoadFile(String basePath) throws IOException { HttpServletRespon... 阅读全文
posted @ 2015-12-17 16:45 绯云 阅读(220) 评论(0) 推荐(0) 编辑
摘要: /** * 下载文件 * * @param basePath * @throws IOException */ private void downLoadFile(String basePath) throws IOException { HttpServletResponse res... 阅读全文
posted @ 2015-12-11 15:31 绯云 阅读(131) 评论(0) 推荐(0) 编辑
摘要: import java.io.BufferedReader;import java.io.InputStreamReader;import java.net.URL;import java.net.URLConnection;import java.util.regex.Matcher;import... 阅读全文
posted @ 2015-11-30 15:45 绯云 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 增删改查 交并补 内连接 外连接创建表: create table table_name( num int IDENTIFIED(1,1) not null, --identified自增量 name VARCHAR2(20) not null, --not null不为空... 阅读全文
posted @ 2015-11-22 17:06 绯云 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Oracle 表空间一个数据库可以有多个表空间,一个表空间里可以有多个表。表空间就是存多个表的物理空间;可以指定表空间的大小位置等。创建表空间: create tablespace ts1 datafile 'C:\tablespace\ts1.dbf' size 50M;自动扩展大小: ... 阅读全文
posted @ 2015-11-22 15:40 绯云 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 作用: 序列(sequence)作为数据库里的对象,主要作用是生成唯一的主键值;创建sequence: CREATE SEQUENCE SEQ_NAME --SI_EXTERNAL_SEQ要创建的sequence的名字 INCREMENT BY 1-- 每次加几个 START WITH 1 ... 阅读全文
posted @ 2015-11-22 15:40 绯云 阅读(173) 评论(0) 推荐(0) 编辑
摘要: import java.awt.image.BufferedImage;import java.io.File;import java.io.IOException;import java.util.ArrayList;import java.util.List;import javax.image... 阅读全文
posted @ 2015-11-03 23:09 绯云 阅读(1794) 评论(0) 推荐(0) 编辑
摘要: 1.Calendar 转化 String//获取当前时间的具体情况,如年,月,日,week,date,分,秒等 Calendar calendat = Calendar.getInstance();SimpleDateFormat sdf = new SimpleDateFormat("yyyy-M... 阅读全文
posted @ 2015-10-13 16:19 绯云 阅读(167) 评论(0) 推荐(0) 编辑