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


package org.apache.jsp; 
 
import javax.servlet.*; 
import javax.servlet.http.*; 
import javax.servlet.jsp.*; 
import java.sql.*; 
import myhotel.MyConn; 
import codechange.Codechange; 
 
public final class multisearchclient_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(" \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"); MyConn conn=new MyConn(); String sqlstr="select * from guests where "; String select=request.getParameter("select"); if(select!=null&&select.compareTo("selected")!=0){ ResultSet rs=conn.executeQuery("select * from guests;"); // ResultSet rs=conn.executeQuery("select roomcode,name,sex,arridate,leftdate from guests where name like '%"+code.toGB(name)+"%';"); while(rs.next()){ out.write("\r\n"); out.write(" \t\t\t\t\r\n"); out.write(" \t\t\t\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(" \r\n"); out.write(" "); } rs.close(); conn.close();} out.write("\r\n"); out.write("
房号
姓名
性别
抵达日期
拟走日期
"); out.print(rs.getObject(1)); out.write(""); out.print(rs.getObject(2)); out.write(""); out.print(rs.getObject(3)); out.write(""); out.print(rs.getObject(7)); out.write(""); out.print(rs.getObject(8)); 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); } } }