Answer Posted / k@r/\/@d
Most of whats said is correct...
The class org.apache.struts.action.ActionServlet is called
ActionServlet.This class plays the role of controller. All
the requests to the server goes thorugh the controller. It
is responsible for handling all the requests.
----> (Action is part of Model.) --> Its still a part of
controller as it directs you to the appropriate business
processor class (which is a part of model).
The purupose of Actionclass is to
translate the HttpServletRequest to the business logic. To
use Action we need to subclass and over(RID)e the execute()
method.
all database and business processing are done here. -->
These CAN be done here, but shouldn't as it would defeat the
purpose of having a seperate Model layer i.e. Business
Layer. The request must be directed to a business class
which would process the request, perform the neccesary
Database operations if any, wrap the response in a response
object and send it back to the action class to be directed
to the next view by means of mapping.findForward...
Thats my take on this...
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
How many struts config file can be created in struts?
What do you mean by actionform?
What is actionform in struts?
What is the difference between struts and spring? Explain
What is the difference between validation.xml and validator-rules.xml files in struts validation framework?
What is difference between actionform and dynaactionform?
What is the purpose of @action annotation?
How many struts config file in a struts application?
Does apache struts run on windows?
What are inner class and anonymous class?
How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?
What is actioninvocation in struts2?
What is the use of namespace in action mapping in Struts2?
in struts how to use hibernate with struts>
In struts.xml, what does the attribute "method" stands for in the "action" tag?