RE: Front Controller?
And note, that there is a *new* Processor-Clazz in /contrib, which implements http://jakarta.apache.org/commons/sandbox/chain/ Cheers! > -Original Message- > From: Amleto Di Salle [mailto:[EMAIL PROTECTED] > Sent: Monday, June 07, 2004 6:53 PM > To: 'Struts Users 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. > > Anyway, the FrontController class inside Struts is the > ActionServlet class and the ApplicationController is > RequestProcessor class. > > BR > Amleto > > -Messaggio originale- > Da: Chaikin, Yaakov Y (US SSA) > [mailto:[EMAIL PROTECTED] > Inviato: lunedì 7 > giugno 2004 18.44 > A: Struts Users Mailing List > Oggetto: RE: Front Controller? > > > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Front Controller?
> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Front Controller?
> 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 pattern. Right. So, is there an existing implementation of this somewhere or I would have write my own. Thanks, Yaakov. > > BR > Amleto > > -Messaggio originale- > Da: Chaikin, Yaakov Y (US SSA) [mailto:[EMAIL PROTECTED] > Inviato: lunedì 7 giugno 2004 18.13 > A: Struts Users Mailing List > Oggetto: RE: Front Controller? > > > > 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 (data handling), View (presentation handling), > Conroller (where to go). Whatever it is, those 2 design patterns are not > the same. > > > 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 in a mapping file the relationship between URLs and the > Action, > > then depending on where the user is going, the ActionServlet will call > > > the appropriate Action at the appropriate time to handle the user's > request. > > Are you suggesting that Struts gives you the ability to specify a > sequence of actions? If so, I am not following how one would do that. > > >From what I understand Struts would give you the ability to specify > where each action ends up, and in that sense you ARE specifying a > sequence of actions. Is that what you mean? > > Thanks, > Yaakov. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Front Controller?
> 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 (data handling), View (presentation handling), Conroller (where to go). Whatever it is, those 2 design patterns are not the same. > 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 in a mapping file the relationship between URLs and the Action, > then depending on where the user is going, the ActionServlet will call > the appropriate Action at the appropriate time to handle the user's request. Are you suggesting that Struts gives you the ability to specify a sequence of actions? If so, I am not following how one would do that. >From what I understand Struts would give you the ability to specify where each action ends up, and in that sense you ARE specifying a sequence of actions. Is that what you mean? Thanks, Yaakov. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Front Controller?
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 in a mapping file the relationship between URLs and the Action, then depending on where the user is going, the ActionServlet will call the appropriate Action at the appropriate time to handle the user's request. Chaikin, Yaakov Y (US SSA) wrote: 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]