Commits

Anonymous committed 074270e

WW-281: Fixed problem on WLS 6.1 SP4

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@36573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (2)

src/java/com/opensymphony/webwork/dispatcher/FilterDispatcher.java

 
     //~ Methods ////////////////////////////////////////////////////////////////
 
+    /**
+     * This method is required by Weblogic 6.1 SP4
+     * instead of {@link init(FilterConfig)} because
+     * they defined this as a required method just before
+     * the Servlet 2.3 specification was finalized.
+     *
+     * @param filterConfig the filter configuration for this filter
+     */
+    public final void setFilterConfig(FilterConfig filterConfig) throws ServletException {
+        init(filterConfig);
+    }
+
+    /**
+     * This method is required by Weblogic 6.1 SP4 because
+     * they defined this as a required method just before
+     * the Servlet 2.3 specification was finalized.
+     *
+     * @return the filter's filter configuration
+     */
+    public FilterConfig getFilterConfig() {
+        return filterConfig;
+    }
+
     public void destroy() {
     }
 

src/java/com/opensymphony/webwork/lifecycle/RequestLifecycleFilter.java

 
     //~ Methods ////////////////////////////////////////////////////////////////
 
+    /**
+     * This method is required by Weblogic 6.1 SP4
+     * instead of {@link init(FilterConfig)} because
+     * they defined this as a required method just before
+     * the Servlet 2.3 specification was finalized.
+     *
+     * @param filterConfig the filter configuration for this filter
+     */
+    public final void setFilterConfig(FilterConfig filterConfig) throws ServletException {
+        init(filterConfig);
+    }
+
+    /**
+     * This method is required by Weblogic 6.1 SP4 because
+     * they defined this as a required method just before
+     * the Servlet 2.3 specification was finalized.
+     *
+     * @return the filter's filter configuration
+     */
+    public FilterConfig getFilterConfig() {
+        return null;
+    }
+
     public void destroy() {
     }