First, if you do not use
EJB 2.x, you needn't to use DTO, you can use domain model directly.
Struts forces to extends ActionForm anyway. I recommend to use Spring Web MVC instead
.
gurpreet singh wrote:
1. Should i seperate IN DTO (goes to DAO) and OUT DTO( response from DAO) because the OUT DTO will have more fields or should it be only one DTO for one request/reponse flow.
Needn't to separate.
gurpreet singh wrote:
2. Is it a good practise to use a existing DTO in other business functionality because some of the fields in existing DTO is similar to other business functinality.
Don't reuse just because it's "similar", do reuse when it's the same concept.
gurpreet singh wrote:
3. Should a JSP use DTO to display the response from DAO or should it mapped to some ViewActionForm and then accessed in a JSP.
What is ViewActionForm?
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional