📄 top_005fbar_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import com.struts.utils.*;
import com.struts.business.*;
import com.struts.controller.*;
import java.util.*;
public final class top_005fbar_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
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\r\n\r\n\r\n\r\n\r\n\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link rel=\"stylesheet\" href=\"main.css\" type=\"text/css\">\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n\r\n\t\r\n\r\n<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" bgcolor=\"#e7e7e7\">\t\r\n\r\n");
java.util.Date date=new java.util.Date();
int y = 1900+date.getYear();
int m = 1+date.getMonth();
int d = date.getDate();
String time=String.valueOf(y)+"年"+String.valueOf(m)+"月"+String.valueOf(d)+"日";
out.write('\r');
out.write('\n');
String username=(String)session.getAttribute(Constants.Member_UserName);
Integer id=(Integer)session.getAttribute(Constants.Member_Id);
if(id==null||id.intValue()==0){
out.write("\t\r\n<form name=\"LoginForm\" action=\"memberTopLogin.do\" method=\"post\">\r\n\r\n<table height=\"25\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" align=\"middle\">\r\n <tr>\r\n\t <td width=\"10%\" align=\"right\" nowrap>用户</td>\r\n\t <td width=\"10%\"><INPUT TYPE=text size=10 maxlength=30 name=username value=\"\"></td>\r\n\t <td width=\"10%\" align=\"right\" nowrap>密码</td>\r\n\t <td width=\"10%\"><INPUT TYPE=password size=10 maxlength=30 name=password value=\"\"></td>\r\n <td width=\"10%\" height=\"12\" align=\"left\"> \r\n <input type=\"submit\" class=button2 value=\"登录\" >\r\n </td>\r\n <td width=\"25%\" align=\"center\" nowrap><a href=\"toMemberRegister.do\" target=\"_blank\">会员注册</a></td>\r\n <td width=\"25%\" align=\"left\" nowrap><a href=\"#\">忘记密码</a></td>\r\n </tr>\r\n</table>\r\n</form>\r\n\r\n");
}
else{
out.write("\r\n\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"25\" align=\"center\">\r\n\t <tr> \r\n\t <td width=\"30%\" align=\"right\" height=\"12\" colspan=\"7\" valign=\"middle\">今天是");
out.print(time);
out.write("</td> \r\n\t\t <td width=\"30%\" align=\"center\" height=\"12\" colspan=\"7\" valign=\"middle\"> 本商店欢迎您:");
out.print(username);
out.write(" </td>\r\n\t <td width=\"40%\"align=\"left\"><a href=\"memberLogout.do\">离开</a></td>\r\n\t </tr>\r\n\t</table>\r\n");
}
out.write("\r\n</body>");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
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 + -