www.pudn.com > Hotel.rar > regist_jsp.java


package org.apache.jsp; 
 
import javax.servlet.*; 
import javax.servlet.http.*; 
import javax.servlet.jsp.*; 
import java.sql.*; 
import myhotel.MyConn; 
 
public final class regist_jsp extends org.apache.jasper.runtime.HttpJspBase 
    implements org.apache.jasper.runtime.JspSourceDependent { 
 
  private static java.util.List _jspx_dependants; 
 
  public Object getDependants() { 
    return _jspx_dependants; 
  } 
 
  public void _jspService(HttpServletRequest request, HttpServletResponse response) 
        throws java.io.IOException, ServletException { 
 
    JspFactory _jspxFactory = null; 
    PageContext pageContext = null; 
    HttpSession session = null; 
    ServletContext application = null; 
    ServletConfig config = null; 
    JspWriter out = null; 
    Object page = this; 
    JspWriter _jspx_out = null; 
    PageContext _jspx_page_context = null; 
 
 
    try { 
      _jspxFactory = JspFactory.getDefaultFactory(); 
      response.setContentType("text/html; charset=gb2312"); 
      pageContext = _jspxFactory.getPageContext(this, request, response, 
      			"", true, 8192, true); 
      _jspx_page_context = pageContext; 
      application = pageContext.getServletContext(); 
      config = pageContext.getServletConfig(); 
      session = pageContext.getSession(); 
      out = pageContext.getOut(); 
      _jspx_out = out; 
 
      out.write("\r\n"); 
      out.write("\r\n"); 
      out.write("\r\n"); 
      out.write("\r\n"); 
      out.write("\r\n"); 
      out.write("\r\n"); 
      out.write("\r\n"); 
      out.write("饭店前台登记系统\r\n"); 
      out.write("\r\n"); 
      out.write("  \r\n"); 
      out.write("\r\n"); 
      out.write("\r\n"); 
      out.write("\r\n"); 
      out.write(" 
\r\n"); out.write(" \r\n"); out.write("
\r\n"); out.write("

 

\r\n"); out.write("\r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write("


\r\n"); out.write("

全部房类详情
 

房间详细说明:

\r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \t\t"); String sql="select count(*) as rentable from room where roomcode='0001';"; MyConn conn=new MyConn(); ResultSet rs=conn.executeQuery("select * from roomclass"); while(rs.next()){ out.write("\r\n"); out.write(" \t\t\t\t\r\n"); out.write(" \t\t\t\t \t"); String temp= String.valueOf(rs.getString(2)); String str="豪华"; if(temp.compareTo(str)==0){ } out.write("\r\n"); out.write(" \t\t\t\t \r\n"); out.write(" \t\t\t\r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" "); ResultSet countrs=conn.executeQuery(sql); String temp1="豪华"; if(temp==str){ while(countrs.next()) { out.write("\r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" "); } out.write("\r\n"); out.write(" "); } out.write("\r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" "); } conn.close(); out.write("\r\n"); out.write(" \r\n"); out.write("
类型床位数房价备注总房数可租床位数
"); out.print(temp); out.write(""); out.print(rs.getObject(3)); out.write(""); out.print(rs.getObject(4)); out.write(""); out.print(rs.getObject(5)); out.write(""); out.print(rs.getObject(6)); out.write(""); out.print(rs.getObject(7)); out.write(""); out.print(countrs.getInt("rentable")); out.write("
\r\n"); out.write("\r\n"); out.write("
\r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write(" \r\n"); out.write("
\r\n"); out.write("\r\n"); out.write("\r\n"); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context); } } }