⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showhotel.jsp

📁 本软件系统可以实现预定酒店的多方位查询、预订酒店的功能。可以方便人们入住酒店,增加酒店的收入
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="com.abc.hotel.*,javax.rmi.*"%>
<html>
<head>
<title>showhotel.jsp</title>
</head>
<body>
<%
Collection collection= (Collection)request.getAttribute("session_findByCity");
if (collection.size() == 0){
%>
没有查询到相应的记录!
<%}else{
      Iterator it=collection.iterator();
      
	  while (it.hasNext()){         
	      
		  Object object = it.next();
		HotelRemote hotelRemote = (HotelRemote)PortableRemoteObject.narrow(object,HotelRemote.class);//造型
	%>
<HR color=#cccccc noShade SIZE=1 width="95%">

<table border="1" width="100%" bordercolor="#FFFFFF" cellspacing="0" cellpadding="0">
  <tr>
    <td width="33%" rowspan="3"><img border="0" src="<%=request.getContextPath()%>/image/<%=hotelRemote.getPic()%>" width="150" height="130"></td>
    <td width="33%">{name}<%=hotelRemote.getName()%></td>
    <td width="34%">{hotel level}<%=hotelRemote.getHotelLevel()%></td>
  </tr>
  <tr>
    <td width="67%" colspan="2">{descr}<%=hotelRemote.getHotelDesc()%></td>
  </tr>
  <tr>
    <td width="67%" colspan="2">{address}<%=hotelRemote.getAddress()%></td>
  </tr>
</table>
<p><br>
</p>

<HR color=#cccccc noShade SIZE=1 width="95%">
<%}}%>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -