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

📄 _flowerinfoadd.java

📁 精美的画面。完善的功能
💻 JAVA
字号:
  /*@lineinfo:filename=/Flowerinfoadd.jsp*/
  /*@lineinfo:generated-code*/

import oracle.jsp.runtime.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import Flower.model.DBConnect;
import Flower.model.Flowertype;
import java.util.*;


public class _Flowerinfoadd extends com.orionserver.http.OrionHttpJspPage {

  public final String _globalsClassName = null;

  // ** Begin Declarations


  // ** End Declarations

  public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {

    response.setContentType( "text/html;charset=GBK");
    /* set up the intrinsic variables using the pageContext goober:
    ** session = HttpSession
    ** application = ServletContext
    ** out = JspWriter
    ** page = this
    ** config = ServletConfig
    ** all session/app beans declared in globals.jsa
    */
    PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
    // Note: this is not emitted if the session directive == false
    HttpSession session = pageContext.getSession();
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
      pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
      return;
}
    int __jsp_tag_starteval;
    ServletContext application = pageContext.getServletContext();
    JspWriter out = pageContext.getOut();
    _Flowerinfoadd page = this;
    ServletConfig config = pageContext.getServletConfig();

    try {
      // global beans
      // end global beans


      out.write(__oracle_jsp_text[0]);
      /*@lineinfo:user-code*//*@lineinfo:2^1*/                if(session.getAttribute("midentity")==null)          {            //  request.setAttribute("result","您没有权力进入此页");             // getServletContext().getRequestDispatcher("display.jsp").forward(request,response);              response.sendRedirect("FlowerIndex.jsp");          }      
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[1]);
      /*@lineinfo:user-code*//*@lineinfo:48^17*/                                  Connection con=null;                            PreparedStatement pstmt=null;                            ResultSet rs=null;                            con=DBConnect.getConnection();                            pstmt=con.prepareStatement("select * from FlowerType");                            rs=pstmt.executeQuery();                            while(rs.next())                            {                      
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[2]);
      /*@lineinfo:user-code*//*@lineinfo:59^36*/      out.print(rs.getString(1));
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[3]);
      /*@lineinfo:user-code*//*@lineinfo:60^21*/      out.print(rs.getString(2));
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[4]);
      /*@lineinfo:user-code*//*@lineinfo:62^21*/                                }                          rs.close();                          pstmt.close();                          con.close();                          
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[5]);
      /*@lineinfo:user-code*//*@lineinfo:96^19*/                                                        String result="请注意系统提示";                        if(request.getAttribute("result")!=null)                        {                          result=request.getAttribute("result").toString();                                                    }                      
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[6]);
      /*@lineinfo:user-code*//*@lineinfo:105^35*/      out.print(result);
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[7]);
      out.write(__oracle_jsp_text[8]);
      out.write(__oracle_jsp_text[9]);
      out.write(__oracle_jsp_text[10]);
      out.write(__oracle_jsp_text[11]);


    }
    catch( Throwable e) {
      try {
        if (out != null) out.clear();
      }
      catch( Exception clearException) {
      }
      pageContext.handlePageException( e);
    }
    finally {
      OracleJspRuntime.extraHandlePCFinally(pageContext,false);
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
    }

  }
  private static final char __oracle_jsp_text[][]=new char[12][];
  static {
    try {
    __oracle_jsp_text[0] = 
    "\n".toCharArray();
    __oracle_jsp_text[1] = 
    "\n<html>\n  <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\">\n    <title>untitled</title>\n    <link href=\"css/jdeveloper.css\" rel=\"stylesheet\" media=\"screen\"/>\n    <script>\n        function zhang()\n        {\n            document.form1.image1.src=document.form1.flowerphoto.value;\n        }\n    </script>\n  </head>\n  <body>\n  <div align=\"center\">\n    <table width=\"760\" height=\"178\" border=\"0\">\n      <tr>\n        <td valign=\"top\"><div align=\"center\">\n          <h1>花卉基本信息添加</h1>\n          <form action=\"flowerinfoservlet\" method=\"post\" name=\"form1\">\n            <table width=\"80%\"  border=\"1\" cellspacing=\"1\" cellpadding=\"2\">\n              <tr>\n                <td>\n                  <FONT color=\"#ff9966\">花卉编号:</FONT>\n                </td>\n                <td><input type=\"text\" name=\"flowerid\"></td>\n              </tr>\n              <tr>\n                <td>\n                  <FONT color=\"#ff9966\">花卉名称:</FONT>\n                </td>\n                <td><input type=\"text\" name=\"flowername\"></td>\n              </tr>\n              <tr>\n                <td>\n                  <FONT color=\"#ff9966\">花卉类别编号:</FONT>\n                </td>\n                <td>\n                <select name=\"flowertypeid\">\n                ".toCharArray();
    __oracle_jsp_text[2] = 
    "\n                  \n                    <option value=\"".toCharArray();
    __oracle_jsp_text[3] = 
    "\">\n                    ".toCharArray();
    __oracle_jsp_text[4] = 
    "\n                    </option>\n                    ".toCharArray();
    __oracle_jsp_text[5] = 
    "\n                  </select>\n                </td>\n              </tr>\n              <tr>\n                <td>\n                  <FONT color=\"#ff9966\">花卉颜色:</FONT>\n                </td>\n                <td><input type=\"text\" name=\"flowercolor\"></td>\n              </tr>\n              <tr>\n                <td>\n                  <FONT color=\"#ff9966\">花卉图片:</FONT>\n                </td>\n                <td>\n                  <img src=\"\" height=\"74\" width=\"80\" name=\"image1\"/>\n                <input type=\"file\" name=\"flowerphoto\" onchange=\"zhang()\"></td>\n              </tr>\n              <tr>\n                <td>\n                  <FONT color=\"#ff9966\">花卉描述:</FONT>\n                </td>\n                <td><textarea name=\"flowermark\"></textarea></td>\n              </tr>\n              <tr>\n                <td>\n                  <FONT color=\"#0033cc\">系统提示:</FONT>\n                </td>\n                <td>\n                  ".toCharArray();
    __oracle_jsp_text[6] = 
    "\n                <font color=\"red\">".toCharArray();
    __oracle_jsp_text[7] = 
    "</font>\n                </td>\n              </tr>\n              <tr>\n                <td>&nbsp;</td>\n                <td><input type=\"submit\" value=\"提交\">\n                <input type=\"reset\" value=\"重置\">\n                <a href=\"ManagerMain.jsp\">返回管理员主页</a> \n                <input type=\"hidden\" name=\"action\" value=\"add\"/>\n                </td>\n              </tr>\n            </table>\n            <P>\n              ".toCharArray();
    __oracle_jsp_text[8] = 
    "\n              ".toCharArray();
    __oracle_jsp_text[9] = 
    "\n              ".toCharArray();
    __oracle_jsp_text[10] = 
    "\n              ".toCharArray();
    __oracle_jsp_text[11] = 
    "\n            </P>\n          </form>\n          <p>&nbsp;</p>\n        </div></td>\n      </tr>\n    </table>\n  </div>\n  </body>\n</html>\n".toCharArray();
    }
    catch (Throwable th) {
      System.err.println(th);
    }
}
}

⌨️ 快捷键说明

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