search_page.jsp

来自「FAQ管理全源代码」· JSP 代码 · 共 34 行

JSP
34
字号
<%@ page contentType="text/html; charset=gb2312" %>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<jsp:useBean id="bean" scope="session" class="faq_project.FAQ_Bean" />
<body bgcolor="#ffffff" background="images2/bj.gif" text="#FFFFFF">
<%
  if(session.getAttribute("message")!=null)
  out.println("<font color=red>"+session.getAttribute("message").toString()+"</font>");
  session.removeAttribute("message");
  %>
<br />
  <form action="servlet" method="POST">
  <div align="right">关键字:
    <input type="text" name="questiontitle" size="10"/>
    选择类型:
    <select name="typename">
      <option selected>所有类型</option>
      <%
        String[] str=bean.getType();
        int i=0;
        while(i<str.length){
          out.println("<option>"+str[i]+"</option>");
          i++;
        }
        %>
    </select>
    <input type="submit" name="type" value="查找"/>
  </div>
</form>
</body>
</html>

⌨️ 快捷键说明

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