Let's first create a JSP that displays the form to enter course details. We will also create a JSP bean to process the form data. Right-click on the WebContent folder under the project in the Project Explorer view and select New | JSP File. Create the JSP file named addCourse.jsp.
We will now create CourseDTO and the JSP bean called CourseJSPBean. Create the CourseDTO class in the packt.jee.eclipse.jms.dto package. Add the id, name, and credits properties, and the getters and setters for them:
import java.io.Serializable; public class CourseDTO implements Serializable { private static final long serialVersionUID = 1L; private int id; private String name; private int credits; //getters and setters follow }
Create CourseJSPBean in the packt...