我在tomcat / conf / web.xml中创建了tomcat过滤器,没有为请求加载tomcat / lib .page内容。但是过滤器正在执行

时间:2017-12-18 12:45:54

标签: java tomcat

我在dofilter方法中添加了SOP声明。当我尝试请求页面时,它进入方法但页面内容未加载。

1 个答案:

答案 0 :(得分:0)

我不是心灵感应,但您应该在过滤器中拨打SET ECHO OFF SET FEEDBACK OFF SET VERIFY OFF SET TERMOUT OFF SET HEADING ON SET NEWPAGE 0 SET LINESIZE 8000 SET PAGESIZE 0 SET SPACE 0 SET WRAP OFF SET RECSEP OFF SET CONCAT OFF SET DOCUMENT OFF SET TRIMOUT ON SET TRIMSPOOL ON SET COLSEP ',' SET TIMING OFF SET ESCAPE ON -- working variables VARIABLE v_curr_month VARCHAR2(7); VARIABLE v_prev_month VARCHAR2(7); VARIABLE v_curr_month_date VARCHAR2(10); VARIABLE v_prev_month_date VARCHAR2(10); DEFINE ext=".csv" -- ensure that the date format is in the expected format for the report ALTER SESSION SET NLS_DATE_FORMAT='DD/MM/YYYY'; BEGIN select to_char(cut_off_date-1,'DD/MM/YYYY'), to_char(cut_off_date-1,'MONYYYY'), to_char(add_months(cut_off_date-1,-1),'DD/MM/YYYY'), to_char(add_months(cut_off_date-1,-1),'MONYYYY') into :v_curr_month_date, :v_curr_month, :v_prev_month_date, :v_prev_month from audit_table where measure_group='MONTHLY_HR_REPORT'; END; / SPOOL C:\Users\Desktop\Report_extract.csv -- report header SELECT 'EVENT_DATE,V_ID,DESC1,DESC2,PREV_TOTAL,CURR_TOTAL' FROM dual WHERE ROWNUM = 1; -- report body SELECT CURR_TAB.EVENT_DATE||','||CURR_TAB.V_ID||','||CURR_TAB.DESC1||','||CURR_TAB.DESC2||','|| PREV_TOTAL||','||CURR_TOTAL FROM (SELECT EVENT_DATE, V_ID, DESC1, DESC2,SUM(CNT_VALUE) CURR_TOTAL FROM TABLE1 WHERE EVENT_DATE = to_date(:v_curr_month_date,'DD/MM/YYYY')----this is causing error GROUP BY EVENT_DATE, V_ID, DESC1, DESC2) CURR_TAB JOIN (SELECT EVENT_DATE, V_ID, DESC1, DESC2,SUM(CNT_VALUE) PREV_TOTAL FROM TABLE1 WHERE EVENT_DATE = to_date(:v_prev_month_date,'DD/MM/YYYY')---this is causing error GROUP BY EVENT_DATE, V_ID, DESC1, DESC2) PREV_TAB ON CURR_TAB.V_ID = PREV_TAB.V_ID ORDER BY CURR_TAB.V_ID; SPOOL OFF