I’m developing spring MVC application and I used AirPortForm.java to get information in my airport.jsp. But I’m just wandering what is the standard method do I need to use AirPortDTO.java instead of AirPortForm.java kindly advice me.
Many thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
Formsuffix usually indicates that the object is meant to contain values coming from an HTML form (Spring calls these command objects).The
DTOsuffix indicates that the object is a Data Transfer Object. A Data Transfer Object is an object, usually without much logic, which is used to carry information between the presentation layer and the service layer.Use the appropriate suffix for you use-case, or use another one or not at all if your object is neither a form nor a DTO.