📄 search_0002ejsp_jsp.java
字号:
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.sql.*;
import com.wgh.DB.connDB;
import com.wgh.DB.chStr;
public class search_0002ejsp_jsp extends HttpJspBase {
private static java.util.Vector _jspx_includes;
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("\r\n");
out.write("\r\n");
connDB conn=new connDB();
chStr chStr=new chStr();
ResultSet rs_type=conn.executeQuery("select ID,supertype from V_Type group by ID,supertype order by supertype");
int id=-1;
String typename="";
out.write("\r\n");
out.write("<form name=\"form2\" method=\"post\" action=\"search_deal.jsp\">\r\n");
out.write("<table width=\"100%\" height=\"23\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write("<tr>\r\n ");
out.write("<td colspan=\"2\" height=\"7\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n");
out.write("<tr>\r\n ");
out.write("<td width=\"85%\">请输入查询条件:\r\n\t");
out.write("<select name=\"type\" class=\"textarea\">\r\n\t ");
out.write("<option value=\"0\" selected>全部分类");
out.write("</option>\r\n\t ");
while(rs_type.next()){
id=rs_type.getInt(1);
typename=rs_type.getString(2);
out.write("\r\n\t\t ");
out.write("<option value=\"");
out.print(id);
out.write("\">");
out.print(typename);
out.write("</option>\r\n\t ");
}
out.write("\r\n\t");
out.write("</select>\r\n\t");
out.write("<input name=\"key\" type=\"text\" class=\"txt_grey\" size=\"33\"> ");
out.write("</td>\r\n ");
out.write("<td width=\"15%\">");
out.write("<input name=\"search\" type=\"submit\" class=\"btn_grey\" value=\"搜索\">");
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("</form>\r\n");
} catch (Throwable t) {
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -