Re: Character Encoding Error using new filters

2010-10-17 Thread Li Ying
Sorry, type error: > In your old configuration, [StrutsPrepareFilter] is the last filter applied > to request ==> Should be: In your old configuration, [FilterDispatcher] is the last filter applied to request 2010/10/18 Li Ying : > I did a quick look at the struts2.2.1 source code. > > It l

Re: Character Encoding Error using new filters

2010-10-17 Thread Li Ying
I did a quick look at the struts2.2.1 source code. It looks like the method [HttpServletRequest.setCharacterEncoding] is invoked by class [FilterDispatcher] and [StrutsPrepareFilter]. (You can use [Call Hierarchy] view to find out this information) In your old configuration, [StrutsPrepareFilter]

Character Encoding Error using new filters

2010-10-17 Thread Zoran Avtarovski
I have a really strange character encoding error that is appearing when I attempt to change my struts2 filter configuration from: struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp struts org.apache.struts2.dispatcher.FilterDispatcher

Memcached Experience

2010-10-17 Thread Frans Thamura
hi all any experience integrating Struts2 with memcached but.. we use hibernate here, hibernate using ecache any strategy welcome. thx

result chain action parameters value

2010-10-17 Thread atcngw000006
Dear struts Users. I've been using Wildcard-mapping url and result type=chain. @ struts 2.2.1. this action's parameter (id) is Null.   detail  {1}  But,Advanced Wildcard-Mapping use Good Result. this action's parameter (id) is value.   detail  https://cwiki.apache.org/WW/wildcard-m

RE: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-17 Thread Martin Gainty
there is some confusion between accessing multiple datasources to (allow access to multiple database schemas) and ThreadLocal which confines the java class variables access to the thread scope to clear up the confusion A single thread can access one datasource with ThreadLocal variables A singl

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-17 Thread Raymond He
1) In this multi-tenant app, it is OK. Every operation just need to access one tenant datasource in the thread .2) Thread local is not appropriate in distributed architecture. sometimes we should access 2 or more datasourses at the same time in ONE thread. 2010/10/16, Dave Newton

Re: Struts, Spring, Hibernate and multiple Sessionfactories

2010-10-17 Thread Eduard Neuwirt
Raymond, I found a possible solution here: http://blog.springsource.com/2007/01/23/dynamic-datasource-routing TenantId is hold in the Struts UserSession and shall be shared with spring layer. The described solution uses ThreadLocal for this purpose. Is it possible to provide this tenantId to th