📄 ticketretrievalprocessor.jsp
字号:
<jsp:useBean id="trb2"
class="com.samspublishing.jpp.ch23.TicketRequestBean2"
scope="session" />
<html>
<head>
<title>Ticket Retrieval Processor </title>
<body>
<h2>Ticket Retrieval Processor </h2>
<br>
<jsp:setProperty name="trb2" property="custID"
param="custID" />
Here is the data that you entered
<br>
<br>
<jsp:getProperty name="trb2" property="custID"/>
<br>
Here is the result of the retrieval attempt
<br>
<%=
trb2.retrieveFromDB()
%>
<br>
<br>
Here is the data that was retrieved
<br>
<jsp:getProperty name="trb2" property="firstName"/>
<br>
<jsp:getProperty name="trb2" property="lastName"/>
<br>
<jsp:getProperty name="trb2" property="cruiseID"/>
<br>
<jsp:getProperty name="trb2" property="destination"/>
<br>
<jsp:getProperty name="trb2" property="port"/>
<br>
<jsp:getProperty name="trb2" property="sailing"/>
<br>
<jsp:getProperty name="trb2" property="numberOfTickets"/>
<br>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -