88
Lesson 2 JSP Tutorial
4 Review the code in
tripsummary.jsp
, also located in jrun_root/servers/tutorial/
compass-ear/compass-war.
It uses a JSP action to instantiate and reference the
TripBean
JavaBean to provide
trip summary information:
<jsp:useBean id="trip" scope="session" class="compass.TripBean"/>
The reservation page reuses the
TripBean
JavaBean to get the trip name, start date,
end date, and price, and presents the data in a different format:
Summary
In this lesson, you added JSP code in the Compass Travel home page, including JSP
directives and scripting code. You developed a JSP that uses a JavaBean to retrieve
detailed trip information from a database. You then reused the JavaBean to retrieve trip
information and displayed it in a summary table format.
What’s next?
In the next lesson, you use EJBs to provide the business logic to validate a credit card
payment and book a trip reservation.
Summary of Contents for 38000382 - Macromedia JRun - Mac
Page 1: ...Getting Started with JRun...
Page 16: ......
Page 68: ...54 Chapter 5 Introduction to EJB...
Page 82: ......
Page 110: ...96 Lesson 3 EJB Tutorial...
Page 128: ...114 Lesson 4 Web Services Tutorial...
Page 132: ...118 Index...