Re: Benefits of using Filter as front controller

2012-08-22 Thread Rene Gielen
early remember that I went >>>> through hell to deploy my applications on WebSphere applications with an >>>> Http server as front Web server. WebSphere goes through web.xml files and >>>> uses Servlet URL mappings to generate the plugin file for resource mapping

Re: Benefits of using Filter as front controller

2012-08-14 Thread Joseph Mocker
just >> wanted to reflect the opinion for some spectrum of struts user community >> though may be small in numbers. >> >> >> - Original Message - >> From: Rene Gielen >> To: Struts Users Mailing List >> Cc: >> Sent: Tuesday, August 14, 2012

Re: Benefits of using Filter as front controller

2012-08-14 Thread Rene Gielen
I just > wanted to reflect the opinion for some spectrum of struts user community > though may be small in numbers. > > > - Original Message ----- > From: Rene Gielen > To: Struts Users Mailing List > Cc: > Sent: Tuesday, August 14, 2012 12:10:56 PM > Subject: Re:

Re: Benefits of using Filter as front controller

2012-08-14 Thread Struts Two
Cc: Sent: Tuesday, August 14, 2012 12:10:56 PM Subject: Re: Benefits of using Filter as front controller So far I fail to see where Struts 2 deviates from or violates the spec. The fact that _usually_ a front controller - a concept not to be found at all in the servlet spec - is implemen

Re: Benefits of using Filter as front controller

2012-08-14 Thread Dave Newton
On Tue, Aug 14, 2012 at 12:10 PM, Rene Gielen wrote: > So far I fail to see where Struts 2 deviates from or violates the spec. > Agreed; I've now read the relevant sections of older and new specs, and AFAICT it does not explicitly disallow serving resources. Further, it is arguable that the phra

Re: Benefits of using Filter as front controller

2012-08-14 Thread Rene Gielen
time] > > > > - Original Message - > From: "umeshawas...@gmail.com" > To: Struts Users Mailing List > Cc: > Sent: Monday, August 13, 2012 2:05:45 PM > Subject: Re: Benefits of using Filter as front controller > > Rene > Thanks for such

Re: Benefits of using Filter as front controller

2012-08-14 Thread Struts Two
2:05:45 PM Subject: Re: Benefits of using Filter as front controller Rene Thanks for such a detailed explanation and descrbing each and every aspects Now even I can say and explains things in much more and good way Sent from BlackBerry® on Airtel -Original Message- From: Rene Gielen Dat

Re: Benefits of using Filter as front controller

2012-08-13 Thread umeshawasthi
: "Struts Users Mailing List" Subject: Re: Benefits of using Filter as front controller Grabbed me a copy of Servlet Spec 2.4: SRV.6.1 What is a filter? A filter is a reusable piece of code that can transform the content of HTTP requests, responses, and header information. Filters do not

Re: Benefits of using Filter as front controller

2012-08-13 Thread Rene Gielen
ave Newton >> Date: Mon, 13 Aug 2012 09:49:43 >> To: Struts Users Mailing List >> Reply-To: "Struts Users Mailing List" >> Subject: Re: Benefits of using Filter as front controller >> >> IIRC it states filters shouldn't be used to serve resources. I can&

Re: Benefits of using Filter as front controller

2012-08-13 Thread Paul Benedict
; > -Original Message- > From: Dave Newton > Date: Mon, 13 Aug 2012 09:49:43 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: Re: Benefits of using Filter as front controller > > IIRC it states filters shouldn't be

Re: Benefits of using Filter as front controller

2012-08-13 Thread umeshawasthi
: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: Re: Benefits of using Filter as front controller IIRC it states filters shouldn't be used to serve resources. I can't look it up at the moment, but will later today. Dave (pardon brevity, typos, and top-

Re: Benefits of using Filter as front controller

2012-08-13 Thread Dave Newton
IIRC it states filters shouldn't be used to serve resources. I can't look it up at the moment, but will later today. Dave (pardon brevity, typos, and top-quoting; on cell) On Aug 13, 2012 9:44 AM, "Paul Benedict" wrote: > With all due respect, I think saying Struts 2 violates the Servlet > Spec

Re: Benefits of using Filter as front controller

2012-08-13 Thread Paul Benedict
With all due respect, I think saying Struts 2 violates the Servlet Spec is a grand stretch of the imagination. http://stackoverflow.com/questions/2957165/servlet-vs-filter Struts has a filter gives greater control over the kind of dispatching needed. You can then intercept processing not just web

RE: Benefits of using Filter as front controller

2012-08-13 Thread Martin Gainty
A good question! The issue of "direct access of filters as resources" does appear to break the 2.4 Servlet spec for the reason that Struts needs access to all (attributes) from the Request Another important issue is "who is doing the dispatching" under Strut2 Martin ___