Originally posted by eduardo ferreira:
No they are not.
- Front controller : Struts SERVLET.
- Application Controller : The struts actions you code.
Thanks and Regards, Amit Taneja
eduardo ferreira
No they are not.
- Front controller : Struts SERVLET.
- Application Controller : The struts actions you code.
n Struts terminology, this class is called an action although you'll also see this general pattern referred to as the command pattern. At runtime, the Struts controller (a Java servlet) maps the incoming request onto an action class and calls the execute() method, which contains the (business) logic required to service the request. In the example, this logic is responsible for locating the Blog instance and making it available (via the request) so that the recent list of blog entries can be presented back to the user. As with all of the others, this example uses JSP as the view technology, although you'll notice from the code above that we don't explicitly say, "please now show JSP page X". We'll cover this shortly but for now, here's the JSP page itself.
In object-oriented programming, the Command pattern is a design pattern in which objects are used to represent actions. A command object encapsulates an action and its parameters.
Originally posted by amit taneja:
can you please explain it in detail like
when you say struts servlet, it is struts action class in struts framework, whihc we don't write but that operates on the basis of struts-config.xml
and when you say "application controller" what you mean ?
we code view and action class/ which we extends the dispact action where we logically send action forward object ? i think
Thanks and Regards, Amit Taneja
SCEA (93%/93%)
Consider Paul's rocket mass heater. |