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 to display validation errors on jsp page?
how to connect from struts to database through hibernet and where u can modify the class
What are action errors?
How is the action mapping specified?
Is struts mvc framework?
What are the action classes in struts?
What are the steps used to setup dispatch action?
How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?
Explain the necessity of empty tag?
What do you mean by inner class and anonymous class?
What is container struts2?
What are the struts2 error message keys that can come during file uploading process?
What is the naming convention for a resource bundle file in struts2?
What is jakarta struts framework?
What are the conditions for actionform to work correctly?