O'Reilly logo

Java EE Development with Eclipse - Second Edition by Ram Kulkarni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a JMS application using JSP and JSP bean

Let's first create JSP that displays a form to enter course details and a Submit button. We will have 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 a JSP file named addCourse.jsp.

We will now create CourseDTO and 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required