__ment.java
上传用户:xjrzjk
上传日期:2022-07-31
资源大小:1585k
文件大小:11k
- /* compiled from JSP: /ment.jsp
- *
- * This code was automatically generated at 22:19:45 on 2004-5-7
- * by weblogic.servlet.jsp.Jsp2Java -- do not edit.
- */
- package jsp_servlet;
- import java.io.*;
- import java.util.*;
- import javax.servlet.*;
- import javax.servlet.http.*;
- import javax.servlet.jsp.*;
- import javax.servlet.jsp.tagext.*;
- // User imports
- // built-in init parameters:
- // boolean _verbose -- wants debugging
- // Well-known variables:
- // JspWriter out -- to write to the browser
- // HttpServletRequest request -- the request object.
- // HttpServletResponse response -- the response object.
- // PageContext pageContext -- the page context for this JSP
- // HttpSession session -- the session object for the client (if any)
- // ServletContext application -- The servlet (application) context
- // ServletConfig config -- The ServletConfig for this JSP
- // Object page -- the instance of this page's implementation class (i.e., 'this')
- /**
- * This code was automatically generated at 22:19:45 on 2004-5-7
- * by weblogic.servlet.jsp.Jsp2Java -- do not edit.
- *
- * Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.
- */
- public final class __ment
- extends
- weblogic.servlet.jsp.JspBase
- implements weblogic.servlet.jsp.StaleIndicator
- {
-
- // StaleIndicator interface
public boolean _isStale() {
weblogic.servlet.jsp.StaleChecker sci =(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext());
java.io.File f = null;
long lastModWhenBuilt = 0L;
if (sci.isResourceStale("/ment.jsp", 1083938808000L, "WebLogic Server 7.0 Thu Jun 20 11:47:11 PDT 2002 190955 ")) return true;
return false;
}
public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) {
java.io.File f = null;
long lastModWhenBuilt = 0L;
if (sci.isResourceStale("/ment.jsp", 1083938808000L, "WebLogic Server 7.0 Thu Jun 20 11:47:11 PDT 2002 190955 ")) return true;
return false;
}
-
- public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
- {
-
- // declare and set well-known variables:
- javax.servlet.ServletConfig config = getServletConfig();
- javax.servlet.ServletContext application = config.getServletContext();
- javax.servlet.jsp.tagext.Tag _activeTag = null;
- // variables for Tag extension protocol
- Object page = this;
- javax.servlet.jsp.JspWriter out;
- javax.servlet.jsp.PageContext pageContext =
javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);
- response.setHeader("Content-Type", "text/html; charset=GBK");
out = pageContext.getOut();
JspWriter _originalOut = out;
- javax.servlet.http.HttpSession session = request.getSession(true);
-
-
- try { // error page try block
response.setContentType("text/html; charset=GBK");
out.print("rn");
//[ /ment.jsp; Line: 2]
try{ //[ /ment.jsp; Line: 3]
String strProductList = (String)request.getSession(true).getAttribute("productList"); //[ /ment.jsp; Line: 4]
String strJs = ""; //[ /ment.jsp; Line: 5]
if (strProductList == null || strProductList.equals("")){ //[ /ment.jsp; Line: 6]
strJs = "alert('您没有选购商品,不能够结帐!');"; //[ /ment.jsp; Line: 7]
strJs += "window.close();"; //[ /ment.jsp; Line: 8]
} //[ /ment.jsp; Line: 9]
String strLoginSuccess = (String)request.getSession(true).getAttribute("LoginSuccess"); //[ /ment.jsp; Line: 10]
if (strLoginSuccess == null || strLoginSuccess.equals("")){ //[ /ment.jsp; Line: 11]
out.print("rn ");
if (true) { //forwarding request //[ /ment.jsp; Line: 13]
out.clear(); // clear current output buffer //[ /ment.jsp; Line: 13]
String __thePage = //[ /ment.jsp; Line: 13]
//[ /ment.jsp; Line: 13]
"ment1.jsp"; //[ /ment.jsp; Line: 13]
pageContext.forward(__thePage); //[ /ment.jsp; Line: 13]
return; //[ /ment.jsp; Line: 13]
} //[ /ment.jsp; Line: 13]
out.print("rn");
//[ /ment.jsp; Line: 14]
} //[ /ment.jsp; Line: 15]
out.print("rn<html>rn<head>rn<title>rn会员登录rn</title>rn<link rel="stylesheet" type="text/css" href="style.css">rn<SCRIPT language=javascript id=clientEventHandlersJS>rn//函数名:chksafern//功能介绍:检查是否含有"'",'\\',"/"rn//参数说明:要检查的字符串rn//返回值:0:是 1:不是rnfunction chksafe(a)rn{rntreturn 1;rn/*tfibdn = new Array ("'" ,"\\", "、", ",", ";", "/");rnti=fibdn.length;rntj=a.length;rntfor (ii=0;ii<i;ii++)rnt{tfor (jj=0;jj<j;jj++)rntt{ttemp1=a.charAt(jj);rnttttemp2=fibdn[ii];rntttif (tem';p1==temp2)rnttt{treturn 0; }rntt}rnt}rntreturn 1;rn*/rn}rnrn//函数名:chkspcrn//功能介绍:检查是否含有空格rn//参数说明:要检查的字符串rn//返回值:0:是 1:不是rnfunction chkspc(a)rn{rntvar i=a.length;rntvar j = 0;rntvar k = 0;rntwhile (k<i)rnt{rnttif (a.charAt(k) != " ")rntttj = j+1;rnttk = k+1;rnt}rntif (j==0)rnt{rnttreturn 0;rnt}rnrntif (i!=j)rnt{ return 2; }rntelsernt{rnttreturn 1;rnt}rn}rn//函数名:fucCheckLengthrn//功能介绍:检查字符串的长度rn//参数说明:要检查的字符串rn//返回值:长度值rnfunction fucCheckLength(strTemp)rn{rntvar i,sum;rntsum=0;rntfor(i=0;i<strTemp.length;i++)rnt{rnttif ((strTemp.charCodeAt(i)>=0) && (strTemp");
out.print(".charCodeAt(i)<=255))rntttsum=sum+1;rnttelserntttsum=sum+2;rnt}rntreturn sum;rn}rnrnrn</SCRIPT>rnrn<SCRIPT language=javascript>rnrnfunction chkitem(str)rn{rntvar strSource ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";rn var ch;rn var i;rn var temp;rnrn for (i=0;i<=(str.length-1);i++)rn {rnrn ch = str.charAt(i);rn temp = strSource.indexOf(ch);rn if (temp==-1)rn {rn return 0;rn }rn }rn if (strSource.indexOf(ch)==-1)rn {rn return 0;rn }rn elsern {rn return 1;rn }rnrnrn}rnrnfunction FORM1_onsubmit()rn{rntif (chkitem(document.FORM1.uid.value)==0)rnt{rnttalert("请输入正确的会员帐号。");rnttdocument.FORM1.uid.focus();rnttreturn false;rnt}rntif ((document.FORM1.uid.vlaue=='') || (chkspc(document.FORM1.uid.value)==0)|| (chkspc(document.FORM1.uid.value)==2))rnt{rnttalert("请将会员帐号填写完整,且不能使用空格!");rnttdocument.FORM1.uid.focus();rnttreturn false;rnt}rntif (chkitem(document.FORM1.pwd.value)==0)rnt{rnttalert("请将填写密码!");rnttdocument.FORM1.pwd.focus();rnttreturn false;rnt}rnrntif ");
out.print("( fucCheckLength(document.FORM1.uid.value) != document.FORM1.uid.value.length )rnt{rnttalert("会员帐号请不要使用中文!");rnttdocument.FORM1.uid.focus();rnttreturn false;rnt}rntif (fucCheckLength(document.FORM1.uid.value) <4 )rnt{rnttalert("会员帐号必须至少4位");rnttdocument.FORM1.uid.focus();rnttreturn false;rnt}rnrn}rn</SCRIPT>rn</head>rn<BODY>rnrn<div align="center">rn <center>rnrn<TABLE cellSpacing=0 cellPadding=0 width=261>rn <TBODY>rn <TR>rn <TD height=62 width="259">rn rn <p align="center"><font color="#FF0000">本站会员购物结算入口rn <BR>rn </font></p>rn <FORM language=javascript name=FORM1 onsubmit="return FORM1_onsubmit()"rn action="mentlogin.jsp" method=post>rn <TABLE cellSpacing=0 cellPadding=0 width=230>rn <TBODY>rn <TR>rn <TD align=middle><STRONG><FONT color=red>rn </FONT></STRONG>rn <TABLE cellSpacing=1 width=230 bgColor=#000000>rn <TBODY>rn <TR vAlign=top bgColor=#eeeeee>rn <TD colSpan=2 width="216" bgcolor="#00");
out.print("6699">rn <p align="center"><font color="#FFFFFF">会员登录</font></p>rn </TD></TR>rn <TR bgColor=#eeeeee>rn <TD width=84 bgcolor=#006699 height=7><SPANrn ><font color="#FFFFFF">会员帐号:</font></SPAN></TD>rn <TD width=120 height=7 bgcolor="#0099CC"><font color="#FFFFFF"><INPUT maxLength=16 size=13rn name=uid> </font> </TD></TR>rn <tr>rn <TD width=84 bgcolor=#006699 height=7><SPANrn ><font color="#FFFFFF">会员密码:</font></SPAN></TD>rn <TD width=120 height=7 bgcolor="#0099CC"><font color="#FFFFFF"><INPUT maxLength=16 size=13rn name=pwd type="password"> </font> </TD>rn </tr>rn <TR vAlign=top bgColor=#eeeeee>rn <TD colSpan=2 width="216" bgcolor="#006699"></TD></TR>rn <TR bgColor=#eeeeee>rn <TD colSpan=2 width="216" bgcolor="#006699">rn <DIV align=cente");
out.print("r><INPUT class=main type=submit size=3 value=立刻登录 name=Submit2>rn <input type="button" value="注册会员" name="B1" onclick="window.location.href='reguser.htm';">rn </DIV></TD></TR></TBODY></TABLE>rn </TD></TR></TBODY></TABLE><BR></FORM></TD></TR></TBODY></TABLE>rn </center>rn</div>rn<div align="center">rn <center>rn <table border="0" width="500" cellspacing="0" cellpadding="0">rn <tr>rn <td width="100%" style="text-indent: 20; line-height: 100%; margin-left: 20; margin-right: 20">购买须知道:rn <p>1、如果你已经是我们的会员,那么,请把你的“注册帐号”和“会员密码”填在里面,再“离开登录”,我们就可以收到你的订单了。</p>rn <p>2、你如果还不是本站的会员,那么,请你先返回首页,点击“注册会员”进行注册,这样你才可以买到我们的优惠价。</p>rn <p> </td>rn </tr>rn </table>rn </center>rn</div>rn</BODY>rn</html>rn");
//[ /ment.jsp; Line: 223]
}catch(Exception e){ //[ /ment.jsp; Line: 224]
throw (e); //[ /ment.jsp; Line: 225]
} //[ /ment.jsp; Line: 226]
} catch (Throwable __ee) {
while (out != null && out != _originalOut) out = pageContext.popBody();
((weblogic.servlet.jsp.PageContextImpl)pageContext).handlePageException((Throwable)__ee);
}
- //before final close brace...
- }
-
-
- }