Creating JMS application using JSP and JSP bean

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 ...

Get Java EE 8 Development with Eclipse now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.