Re: [picocontainer-dev] Nanowar filter chains

Mauro Talevi <[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
Konstantin Priblouda wrote:
> Hi all, 
> 
> I just discovered that current aproach in chain filter
> ( forward request ) is not going to work with WW2 / S2
> ,
> because pereferred way to dispatch to actions is nov
> entirely via filter, so only static pages are possible
> ( not much fun - there must be logic somewhere to
> decide
> where to divert ) 
> 
> However, I tried to wrap request that it returns other
> servlet path and pass it down the chain - it worked. 
> 
> Would it be too dangerous / not acceptable for other
> containers than tomcat? ( it works with TC / JB ) 
> 
> And while the main puprose of diverting to action vas
> to provide logic to choose where to redirect based on 
> cause of failure in chain, this logic could be
> provided 
> by other means.
> 
> Say - filter may lookup "divertor"-Component (
> configurable key / class, instantiate via  container -
> 
> we have one ) which tells him where to go further. 
> 
> WDYT?

Not sure I understand.  You saying your fix *only* works for Tomcat/JBoss?

I don't really use filter chains, but if you have a filter implementation that does the trick with 
Struts2, then perhaps it should be added to a nanowar-struts2 component.

BTW, what happened to the whole issue of the migration of WW2 code to S2 codebase?

Cheers


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.