Demonstration of page flow design patterns.   Please confirm course details:

#if ($courseBooking.bookingNotes != "") #end
Customer Name $customer.name   (Customer No. $customer.id)
Course Type $courseBooking.courseType
Booking Date $format.date($courseBooking.bookingDate, "dd MMM yyyy")
Booking Notes $courseBooking.bookingNotes
$form

 

When the booking is confirmed the page will redirect to the last page:
Long bookingId = getBookingService().insertCourseBooking(booking);

String path = getContext().getPagePath(LastPage.class);
setRedirect(path + "?bookingId=" + bookingId);
This page flow design pattern is known as Post-Redirect.