esource but when it comes to filters there is. And quite
>>> rightfully so, as there may be darn compelling reasons to do so, since
>>> things quite few often do not follow patterns put in black and white. I am
>>> not trying to stir an endless discussion on what inter
gt; rightfully so, as there may be darn compelling reasons to do so, since
>> things quite few often do not follow patterns put in black and white. I am
>> not trying to stir an endless discussion on what interpretation is correct
>> as there will be no consensus. And I do not k
be no consensus. And I do not know what has been the darn
> compelling reason that could have not gotten away with using a Servlet as
> front controller in struts 2, but I would have loved to have the option of
> using a Servlet as my front controller in struts 2.
>
> Wi
e few
often do not follow patterns put in black and white. I am not trying to stir an
endless discussion on what interpretation is correct as there will be no
consensus. And I do not know what has been the darn compelling reason that
could have not gotten away with using a Servlet as front control
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
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 implemented as servlet does not mean
that it _has_ to be implemented that way, unless the spec says or
clearly implies
What people are missing here is that using filters and deviating from the spec
as front controller would cause quite a few issues when some applications
servers are used. I quite clearly remember that I went through hell to deploy
my applications on WebSphere applications with an Http server as
: "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
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&
;
> -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
: 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-
interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
> >
> n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>> Date: Mon, 13 Aug 2012 11:30:05 +0530
>> Subject: Benefits
légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Mon, 13 Aug 2012 11:30:05 +0530
> Subject: Benefits of using Filter as front controller
> From: umeshawas...@gma
.
--- On Thu, 10/8/09, Wes Wannemacher wrote:
> From: Wes Wannemacher
> Subject: Re: Servlet filter as front controller
> To: "Struts Users Mailing List"
> Received: Thursday, October 8, 2009, 1:15 PM
> I was thinking about this issue
> recently and wondered if simply
&g
10/7/09, Arthur Neves wrote:
>
>> From: Arthur Neves
>> Subject: Re: Servlet filter as front controller
>> To: "Struts Users Mailing List"
>> Received: Wednesday, October 7, 2009, 11:57 PM
>> With the filter struts2 can intercept
>> all request.
>&
appservers that follow the spec and you have to resort to all sort of
hacks to get around it.
--- On Wed, 10/7/09, Arthur Neves wrote:
> From: Arthur Neves
> Subject: Re: Servlet filter as front controller
> To: "Struts Users Mailing List"
> Received: Wednesday, October 7, 200
apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter as front
> controller, rather than having a servlet act as front controller. Is there
> any specific advantage of using servlet filter over servlet (as in struts
> 1.1)?
> Thanks,Unmesh
>
> ___
Hi,Struts2 uses servlet filter
org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter as front
controller, rather than having a servlet act as front controller. Is there any
specific advantage of using servlet filter over servlet (as in struts 1.1)?
Thanks,Unmesh
On 2/2/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
* snip a bunch of stuff *
> Objections?
More of a comment really. While you may or may not be right about
which framework/buzzword/concept/pattern sucks and how much they suck,
Struts has helped me "git 'er done" without too much pain.
Cal
Intro
-
Struts sucks (c) Jason Carreira. Struts implements Front Controller
pattern. ==> Front Controller pattern sucks ==> ASP.NET does not suck
because it uses Page Controller pattern ==> J2EE must have its own
non-sucky Page Controller framework ==> JSF has been born ==> JS
If someone cares, I wrote a piece on web islands, which are
essentially multi-state multi-page resources.
http://www.jroller.com/page/javadujour?entry=islands
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
Hi all,
I want to write a Swing front end for one of my struts applications.
Basically keeping everything besides the view. I would be nice if I
can keep the validation framework and my controller components probably
wrapped in some kind of interface. I am wondering if there's already a
project d
Hi,
PROBLEM:
Please help with my servlet mapping issue. It's
calling my redirector class repeately and the
redirector does not work.
REQUIREMENTS:
I want to give my client a personalized URL like
http://www.mydomain.com/myWebApp/FirstName_LastName
(NOTE: no file extension).
When the user enters
Hi,
Here's a little bit better link about Front Controller.
http://java.sun.com/blueprints/corej2eepatterns/Patterns/FrontController.html
-Rob
Amleto Di Salle wrote:
Hi,
Struts contains a Front Controller implementation!
Anyway, if you want to see the Front Controller design pattern and
o
sers Mailing List'
> Subject: R: Front Controller?
>
>
> Hi,
> Front Controller design pattern contains several
> collaborations and strategies in order to "implements" the
> pattern. See the link that i sent you before in order to
> understand what i mean.
>
Hi,
Front Controller design pattern contains several collaborations and
strategies in order to "implements" the pattern. See the link that i
sent you before in order to understand what i mean.
Anyway, the FrontController class inside Struts is the ActionServlet
class and the Application
> Struts contains a Front Controller implementation!
Could you point me to a particular class? Or are you saying that the
default class is already following Front Controller?
Thanks,
Yaakov.
-
To unsubscribe, e-mail: [EM
Hi,
Struts contains a Front Controller implementation!
Anyway, if you want to see the Front Controller design pattern and
others please visit http://www.corej2eepatterns.com/index.htm
BR
Amleto
-Messaggio originale-
Da: Chaikin, Yaakov Y (US SSA) [mailto:[EMAIL PROTECTED]
Inviato
> Hi,
> I think that MVC and Front Controller are slightly different because MVC
> (or Model 2) is an "architectural" pattern and Front Controller is a
> design pattern.
>
> Front Controller design pattern is a possible solution for the
> Controller "element
Hi,
I think that MVC and Front Controller are slightly different because MVC
(or Model 2) is an "architectural" pattern and Front Controller is a
design pattern.
Front Controller design pattern is a possible solution for the
Controller "element" inside the MVC
> Model 2 / MVC / Front Controller are all the same thing.
Hmm... No, they are not. Front Controller and MVC are similar, but are
NOT the same design patterns! Front Controller is used for a sequence of
predefined steps (like a check out on amazon). MVC is used for
separation of Model (d
Model 2 / MVC / Front Controller are all the same thing. In Struts the
"Front Controller" is the "ActionServlet", it
receives/handles/dispatches every single request that comes into your
web app. You write actions that are like units of functionality, then
specify i
Hi,
Struts project is for MVC. Is there a project out there that implements
Front Controller pattern?
Thank you.
Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
-
To unsubscribe, e-mail
34 matches
Mail list logo