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

📄 vet_jsp.java

📁 这是java编写宠物医院项目
💻 JAVA
字号:
package org.apache.jsp.vet;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import vet.*;
import java.util.*;

public final class vet_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List 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=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, 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\r\n<html>\r\n<head>\r\n<title>\r\n查询兽医\r\n</title>\r\n<style type=\"text/css\">\r\n<!--\r\n.STYLE1 {color: #0000FF}\r\n.STYLE2 {color: #0066FF}\r\n-->\r\n</style>\r\n<meta  http-equiv=\"cintent-type\" content=\"text/html; charset=utf-8\" />\r\n</head>\r\n<body bgcolor=\"#ffffff\">\r\n  ");
request.setCharacterEncoding("utf-8"); 
      out.write("\r\n<p align=\"center\" class=\"STYLE1\">查询兽医 </p>\r\n<base target=\"mainFrame\">\r\n<table width=\"504\" border=\"0\" align=\"center\">\r\n  <tr>\r\n    <form name=\"form1\" method=\"post\" action=\"../controller?action=vet&method=vname\">\r\n      <td width=\"106\">按姓名查询:</td>\r\n      <td width=\"183\"><label>\r\n        <input name=\"vname\" type=\"text\" id=\"vname\" size=\"25\">\r\n      </label></td>\r\n      <td width=\"149\"><label>\r\n        <input type=\"submit\" name=\"Submit\" value=\"提交\">\r\n        </label>\r\n        &nbsp;&nbsp;&nbsp;&nbsp;</td>\r\n    </form>\r\n  </tr>\r\n  <tr>\r\n    <form name=\"form2\" method=\"post\" action=\"../controller?action=vet&method=vsp\">\r\n      <td>按专业查询:</td>\r\n      <td><label>\r\n        <select name=\"vsp\" id=\"vsp\" >\r\n          ");

         VetDAO dao1=new VetDAO();
         Collection c1=dao1.vet_zy();
         Iterator item1=c1.iterator();
         while (item1.hasNext()){
           String vo1=(String)item1.next();
      
      out.write("\r\n          <option  value=\"");
      out.print(vo1 );
      out.write('"');
      out.write('>');
      out.print(vo1 );
      out.write("\r\n            ");
} 
      out.write("\r\n          </option>\r\n        </select>\r\n      </label></td>\r\n      <td><input type=\"submit\" name=\"Submit2\" value=\"提交\">\r\n        &nbsp;&nbsp;<a href=\"../vet/vadd.jsp\">添加兽医</a></td>\r\n    </form>\r\n  </tr>\r\n</table>\r\n<p>&nbsp;</p>\r\n<table width=\"748\" border=\"0\" align=\"center\">\r\n  <tr>\r\n    <td width=\"63\">编号</td>\r\n    <td width=\"96\">姓名</td>\r\n    <td width=\"56\">性别</td>\r\n    <td width=\"56\">年龄</td>\r\n    <td width=\"127\">专业</td>\r\n    <td width=\"120\">地址</td>\r\n    <td width=\"200\">注册时间</td>\r\n  </tr>\r\n  ");

  VetDAO dao=new  VetDAO();
     Collection c=dao.vet_select();
     Iterator item=c.iterator();
     while(item.hasNext()){
     VetVO vo=(VetVO)item.next();
     
      out.write("\r\n     <tr>\r\n       <td><span class=\"STYLE2\">");
      out.print(vo.getVid() );
      out.write("</span></td>\r\n       <td><span class=\"STYLE2\">");
      out.print(vo.getVname() );
      out.write("</span></td>\r\n       <td><span class=\"STYLE2\">");
      out.print(vo.getVsex() );
      out.write("</span></td>\r\n       <td><span class=\"STYLE2\">");
      out.print(vo.getVage() );
      out.write("</span></td>\r\n       <td><span class=\"STYLE2\">");
      out.print(vo.getVsp());
      out.write("</span></td>\r\n       <td><span class=\"STYLE2\">");
      out.print(vo.getVaddress() );
      out.write("</span></td>\r\n       <td><span class=\"STYLE2\">");
      out.print(vo.getVtime() );
      out.write("</span></td>\r\n     </tr>\r\n    ");
 }
      out.write("\r\n</table>\r\n<p>&nbsp;</p>\r\n</body>\r\n</html>\r\n\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);
    }
  }
}

⌨️ 快捷键说明

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