Hi I have few queries in the process defined.
1. User submits an HTTP request
- clear
2. Struts Action pulls necessary data from the HTTP request, ing business objects (BOs), and calling BO methods with data from the request as necessary.
- Does the Action class send data through method parameter of the business object or we will have a valueObject that is accessible through all the layers of the application. By valueObject I mean a
java class with setter and getter methods to which Action class would populate data.
- What is the best process to use?
3. BOs call DAOs, which in turn access the datastore, returning the data to the BO, possibly as a DTO (data transfer object).
- What are DAO's. Can we say DAO as an entity bean?.
- Can we say DTO as ValueObject which i have refered above?.
- if DAO is termed as entity bean then i think BO should build the DTO from the enitity bean. Please correct me if my understanding is wrong.
4. BOs return data to the Action (possibly as a DTO), which then either places the data in scope or copies it to an ActionForm as needed. The Struts ActionServlet then forwarding to the JSP specified in the Action.
- assuming DTO as a valueObject.
5. JSP accesses data in scope and displays it for user.
- clear
Thank you very much
Saritha