javaeyeren的博客
javaeyeren · 共 86 篇文章
getOutputStream() has already been called for this response
在释放在jsp中使用的对象,会调用response.getWriter(),因为这个方法是和response.getOutputStream()相冲突的!所以会出现以上这个异常。 解决方法: out.clear(); out = pageContext.pushBody();
2009-03-24 11:46 · 评论(0)
eclipse中的cvs删除操作与TortoiseCVS的删除操作的不同之处
在eclipse里面,如果你删除了一个文件或文件夹,则eclipse会认为除了删除本地的文件(文件夹),你也要删除服务器上的文件(文件夹),当你commit的时候,就会帮你删除掉服务器上的文件(文件夹)。这是eclipse的智能之处,但eclipse新手老是会忘了这一点,从而误删服务器上的文件(文件夹)。 在TortoiseCVS中,如果直接通过资源管理器删除文件(文件夹),TortoiseCVS是不会帮你删掉CVS服务器上的文件(文件夹)的。要删除服务器上的文件(文件夹),必须通过TortoiseCVS的菜单进行删除操作,再commit。
2009-03-20 14:32 · 评论(0)
iReport和JasperReport
一、介绍 1)它可以PDF,HTML,XML等多种形式产生报表或动态报表,在新版本还支持CSV,XLS,RTF等格式的报表; 2)它按预定义的XML文档来组织数据,来源多(如:关系数据库,Java容器对象(collection,arrays)等); 报表的填充过程: 先产生报表设计对象->序列化该对象->存储在磁盘或网络->产生XML文件(表格数据)。 表单的设计过程就是用定义于XML文件中的Java表达式来实现报表的设计。 3)它带数据一致性验证; 4)报表引擎必须先接受数据(通过参数等多种形式)来产生报表,更多的是来自数据源,引擎直接接收用于填充表格的数据源对象,或者通过自身提供的JDB…
2009-03-20 14:30 · 评论(0)
PL/SQL常用设置
PL/SQL代码提示: 1. 手动提示设置: key configuration ->Tools/Code Assistance 改成 Alt+/ 2. 自动提示设置: tools-->preferences-->user interface-->code assistant-->authomatically activated PL/SQL显示Window List列表: tools->Window List , Window->Save Layout PL/SQL中关键字设置: tools-->preferences-->user interface-->Editor-->Keyword…
2009-03-17 11:10 · 评论(0)
使/etc/profile 生效!
/etc/profile 更改后, 可用source /etc/profile来马上更新, 或reboot。 如果chkconfig在linux不能执行, 可把/sbin加到/etc/profile的PATH变量里或/sbin/chkconfig --list 来执行.
2009-02-25 00:04 · 评论(0)
Linux ftp 启动报错:500 OOPS: vsftpd: cannot open specified config file
/etc/init.d/vsftpd start 启动 缺报错:500 OOPS: vsftpd: cannot open specified config file etc/vsftpd目录下面有vsftpd.conf文件. 用下面方法可正常启动ftp [root@localhost init.d]# service vsftpd start Starting vsftpd for vsftpd: [ OK ]
2009-02-24 13:45 · 评论(0)
Oracle JOB 用法小结
一、设置初始化参数 job_queue_processes sql> alter system set job_queue_processes=n;(n>0) job_queue_processes最大值为1000 查看job queue 后台进程 sql>select name,description from v$bgprocess; 二,dbms_job package 用法介绍 包含以下子过程: Broken()过程。 change()过程。 Interval()过程。 Isubmit()过程。 Next_Date()过程。 Remove()过程。 Run()过程。 Submit()…
2009-02-04 23:22 · 评论(0)
ORACLE存储过程----基本语法
create [or replace] procedure procedure_name (varible {IN|OUT|IN OUT} type){IS|AS} [varible { in | out | in out }] type; [varible { in | out | in out }] type; ...... [cursor curor_name IS select subclause] begin body end [procedure_name]; for example: create or replace procedure sp_login_error_coun…
2009-02-04 23:19 · 评论(0)
oracle存储过程调试!
用 DBMS_OUTPUT.PUT_LINE('dddddddddddddd'); 在存储过程中打印信息. SQL> set serveroutput on; --开启输出 SQL> exec 存储过程名;
2009-02-04 23:08 · 评论(0)
oracle job 定时,启动,停止,察看状态。运行脚本
job里面的 last_date 和 next_date ,以及interval之间是什么关系,last_date到底是记的 job 的开始执行时间,还是执行结束的时间。next_date到底是 job 的开始时间还是结束时间加上 interval 得出的呢? 如果一个Job的执行时间比较长(比如超过了interval),会不会出现多个同样的 job 同时执行呢? last_date=开始时间 last_date+interval=next_date 但要清楚,next_date 通常不是真正的开始时间,真正的开始时间往往比next_date 晚几秒, 也就是延时。 2、不会。 1 job的…
2009-02-04 23:03 · 评论(0)
oracle job调存储过程!
写存储过程 写job 运行job,如果不执行,则 查看顺序,好像顺序的值大于0就可以 SQL> show parameter job; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ job_queue_processes integer 10 SQL> alter system set job_queue_processes=11; System altered SQL> show parameter job; NAME TYPE VALUE --…
2009-02-04 15:50 · 评论(0)
oracle 取每月1号几点几分几秒
select trunc(sysdate, 'mm') + 0 / 24 + 5 / 24 / 60 + 0 / 24 / 60 / 60, trunc(sysdate, 'mm'), sysdate, sysdate + 0 / 24 + 1 / 24 / 60 + 0 / 24 / 60 / 60, trunc(add_months(sysdate, 1), 'mm') + 0 / 24 + 5 / 24 / 60 + 0 / 24 / 60 / 60, trunc(add_months(sysdate, 1), 'mm'), ADD_MONTHS(to_date('2009-2-1 0…
2009-02-04 15:39 · 评论(0)
onkeydown,onkeyup,onkeypress,onclick,ondblclick
onkeydown,onkeyup,onkeypress,onclick,ondblclick 昨天群里面的朋友问了个比较有意思的问题,keydown,keyup,keypress事件的先后顺序。 这里给出一段测试代码: <script type="text/javascript"> document.onkeydown = function(){ document.getElementById("test").innerHTML += "keydown<br/>"; } document.onkeyup = function(){ document.getElementById("test…
2009-02-03 23:46 · 评论(0)