From issues-return-5039-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Mon May 07 08:34:08 2007 Return-Path: Delivered-To: apmail-struts-issues-archive@locus.apache.org Received: (qmail 25392 invoked from network); 7 May 2007 08:34:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2007 08:34:07 -0000 Received: (qmail 48297 invoked by uid 500); 7 May 2007 08:34:12 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 48067 invoked by uid 500); 7 May 2007 08:34:10 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 47944 invoked by uid 99); 7 May 2007 08:34:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 01:34:10 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2007 01:34:03 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EF12C714066 for ; Mon, 7 May 2007 01:33:42 -0700 (PDT) Message-ID: <9640287.1178526822976.JavaMail.jira@brutus> Date: Mon, 7 May 2007 01:33:42 -0700 (PDT) From: "floyd.yao (JIRA)" To: issues@struts.apache.org Subject: [jira] Created: (WW-1913) Integrate valuestack with EL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Integrate valuestack with EL ----------------------------- Key: WW-1913 URL: https://issues.apache.org/struts/browse/WW-1913 Project: Struts 2 Issue Type: Bug Components: Dispatch Affects Versions: 2.0.6 Environment: tomcat5.5.17 , struts2.0.6 Reporter: floyd.yao When using '/*' as the FilterDispatcher mapping pattern,the FilterDispatcher.prepareDispatcherAndWrapRequest method will always prepares threadlocal dispatcher(got from Dispatcher.getInstance() in method prepareDispatcherAndWrapRequest ) for each request (including request like *.js,*.htm...) but never cleanup the threadlocal dispatcher like when action served, which result in the absence of wrapping to StrutsRequestWrapper after the first non-action mapping request. And the unwrapped request 's getAttribute will not findAttribute in valuestack ,the El collapse :( I found two ways to solve this problem: 1. change the pattern from '/*' back to '*.do',and it works .(both Codebehind Plugin and zero configuration featrue of struts2 seem to work well in *.do pattern ,isnt it ?) 2. add ActionContextCleanUp filter before struts FilterDispatcher filter in web.xml ,thus it'll do cleanup for every request.(is it designed to be used like this ? the guide said it delegate the cleanup action as used with Sitemesh) So,Is there a need to move the 'ActionContextCleanUp.cleanUp(req);' to the outer try..finally block in class FilterDispatcher ?thus the '/*' pattern can also be used with EL in jsp . Is it a bug ? Any suggestion is appreciated :) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.