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

📄 loginform_tag.java

📁 一个基于JAVA的BS结构的宠物诊所管理系统.是当年在学校时写的,大家指点一下.
💻 JAVA
字号:
package org.apache.jsp.tag.web;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class loginform_tag
    extends javax.servlet.jsp.tagext.SimpleTagSupport
    implements org.apache.jasper.runtime.JspSourceDependent {


  private static java.util.Vector _jspx_dependants;

  private JspContext jspContext;
  private java.io.Writer _jspx_sout;
  public void setJspContext(JspContext ctx) {
    super.setJspContext(ctx);
    java.util.ArrayList _jspx_nested = null;
    java.util.ArrayList _jspx_at_begin = null;
    java.util.ArrayList _jspx_at_end = null;
    this.jspContext = new org.apache.jasper.runtime.JspContextWrapper(ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null);
  }

  public JspContext getJspContext() {
    return this.jspContext;
  }

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void doTag() throws JspException, java.io.IOException {
    PageContext _jspx_page_context = (PageContext)jspContext;
    HttpServletRequest request = (HttpServletRequest) _jspx_page_context.getRequest();
    HttpServletResponse response = (HttpServletResponse) _jspx_page_context.getResponse();
    HttpSession session = _jspx_page_context.getSession();
    ServletContext application = _jspx_page_context.getServletContext();
    ServletConfig config = _jspx_page_context.getServletConfig();
    JspWriter out = jspContext.getOut();

    try {
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<SCRIPT type=\"\" language=\"JavaScript\">\n");
      out.write("function returnUserInfo()\n");
      out.write("{\n");
      out.write("  //var uname=document.form1.userName.value;\n");
      out.write("  if(!isUserName(document.form1.userName)){\n");
      out.write("    return false ;\n");
      out.write("  }\n");
      out.write("\n");
      out.write("  //if(document.form1.userPassword.value==\"\"){\n");
      out.write("   // alert(\"请输入您的有较密码!\");\n");
      out.write("   // return false ;\n");
      out.write("  //}\n");
      out.write("  if(!isPassword(document.form1.userPassword)){\n");
      out.write("    return false ;\n");
      out.write("  }\n");
      out.write("\treturn true;//\n");
      out.write("}\n");
      out.write("</SCRIPT>\n");
      out.write("<TABLE cellSpacing=0 cellPadding=0 width=776 align=center background=datasrc/centerbg.gif border=0>\n");
      out.write("  <TBODY>\n");
      out.write("    <TR>\n");
      out.write("      <TD vAlign=top width=258 background=\"datasrc/09.gif height=113\">\n");
      out.write("      <form onSubmit=\"return returnUserInfo()\" name=\"form1\" method=\"post\" action=\"login.do\">\n");
      out.write("        <table width=\"241\" height=\"93\">\n");
      out.write("          <tr>\n");
      out.write("            <td width=\"84\">用户名:</td>\n");
      out.write("            <td width=\"159\">\n");
      out.write("              <label>\n");
      out.write("                <input  name=\"userName\" type=\"text\" maxlength=\"20\" size=\"15\">\n");
      out.write("              </label>\n");
      out.write("            </td>\n");
      out.write("          </tr>\n");
      out.write("          <tr>\n");
      out.write("            <td>密&nbsp;码:</td>\n");
      out.write("            <td>\n");
      out.write("              <label>\n");
      out.write("                <input name=\"userPassword\" type=\"password\" maxlength=\"16\" size=\"15\">\n");
      out.write("              </label>\n");
      out.write("            </td>\n");
      out.write("          </tr>\n");
      out.write("          <tr>\n");
      out.write("            <td>&nbsp;</td>\n");
      out.write("            <td>\n");
      out.write("              <label>\n");
      out.write("                <input type=\"submit\" value=\"登录\">\n");
      out.write("                <input type=\"reset\" value=\"取消\">\n");
      out.write("              </label>\n");
      out.write("            </td>\n");
      out.write("          </tr>\n");
      out.write("        </table>\n");
      out.write("      </form>\n");
      out.write("      </TD>\n");
      out.write("      <TD vAlign=top width=518>\n");
      out.write("        <MARQUEE id=externalmarquee onmouseover=this.scrollAmount=0 onmouseout=this.scrollAmount=4 scrollAmount=4>\n");
      out.write("          <img alt=\"\" src=\"datasrc/first.JPG\" width=\"519\" height=\"150\">\n");
      out.write("        </MARQUEE>\n");
      out.write("      </TD>\n");
      out.write("    </TR>\n");
      out.write("  </TBODY>\n");
      out.write("</TABLE>\n");
    } catch( Throwable t ) {
      if( t instanceof SkipPageException )
          throw (SkipPageException) t;
      if( t instanceof java.io.IOException )
          throw (java.io.IOException) t;
      if( t instanceof IllegalStateException )
          throw (IllegalStateException) t;
      if( t instanceof JspException )
          throw (JspException) t;
      throw new JspException(t);
    } finally {
      ((org.apache.jasper.runtime.JspContextWrapper) jspContext).syncEndTagFile();
    }
  }
}

⌨️ 快捷键说明

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