📄 productdetail_jsp.java
字号:
package org.apache.jsp.e_005fjsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.anren.estore.entity.User;
public final class productdetail_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
public Object 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;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<!--文件头开始-->\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
out.write("<html>\r\n");
out.write("\t<head> \r\n");
out.write("\t\t<meta http-equiv=\"Content-Language\" content=\"zh-cn\">\r\n");
out.write("\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("\t\t<meta name=\"description\" content=\"达内电子商务门户\">\r\n");
out.write("\t\t<title>达内电子商务门户</title>\r\n");
out.write("\t\t<LINK href=\"css/tarena.css\" rel=stylesheet>\r\n");
out.write("\t\t<script language = \"JavaScript\" src = \"js/tarena.js\"></script>\r\n");
out.write("\t</head>\r\n");
out.write("\t<body onLoad=\"MM_preloadImages('images/index_on.gif','images/reg_on.gif','images/order_on.gif','../images/top/topxmas/jp_on.gif','../images/top/topxmas/download_on.gif','../images/top/topxmas/bbs_on.gif','../images/top/topxmas/designwz_on.gif')\" topmargin=\"0\" leftmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\">\r\n");
out.write("\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"\r\n");
out.write("\tid=\"table2\">\r\n");
out.write("\t<tr>\r\n");
out.write("\t\t<td align=\"left\" width=\"7%\"\r\n");
out.write("\t\t\tbackground=\"images/top_bg.gif\">\r\n");
out.write("\t\t\t<img src=\"images/logo.gif\" width=\"286\"\r\n");
out.write("\t\t\t\theight=\"58\">\r\n");
out.write("\t\t</td>\r\n");
out.write("\t\t<td width=\"38%\"\r\n");
out.write("\t\t\tbackground=\"images/top_r.gif\">\r\n");
out.write("\t\t</td>\r\n");
out.write("\t\t<td valign=\"top\"\r\n");
out.write("\t\t\tbackground=\"images/top_r.gif\"\r\n");
out.write("\t\t\talign=\"right\" width=\"352\" height=\"58\" border=\"0\">\r\n");
out.write("\t\t\t");
User user=null;
user=(User)session.getAttribute("user");
if(user!=null){
out.write("\r\n");
out.write(" 亲爱的");
out.print(user.getUserName());
out.write("!欢迎光临! \r\n");
out.write(" <a href=\"updatepassword.jsp\">修改密码</a>\r\n");
out.write(" ");
}else{
out.write("\r\n");
out.write("\t\t\t<a href=\"login.jsp\"\r\n");
out.write("\t\t\t\t\tstyle=\"color: blue ;border: thick;\"><img\r\n");
out.write("\t\t\t\t\t\tsrc=\"images/img_user.gif\" border=\"0\" />用户登录\r\n");
out.write("\t\t\t</a> | \r\n");
out.write("\t\t\t<a href=\"/OnlineBookStore/estore_jsp/register.jsp\"\r\n");
out.write("\t\t\t\t\tstyle=\"color: blue ;border: thick;\"><img\r\n");
out.write("\t\t\t\t\t\tsrc=\"images/img_user.gif\" border=\"0\" />注册用户\r\n");
out.write("\t\t\t</a> | \r\n");
out.write(" ");
}
out.write("\r\n");
out.write("\t\t\t<a\thref=\"/estore/estore/listallbookaction.do\"\r\n");
out.write("\t\t\t\tstyle=\"color: blue ;border: thick;\">\r\n");
out.write("\t\t\t\t<img src=\"images/img_page.gif\" border=\"0\"/>主页\r\n");
out.write("\t\t\t</a>\r\n");
out.write("\t\t</td>\r\n");
out.write("\t</tr>\r\n");
out.write("</table>\r\n");
out.write("\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write("\t\t <tr>\r\n");
out.write("\t\t <td background=\"images/dh_bg.gif\" align=\"left\" height=\"12\">\r\n");
out.write("\t\t <table width=\"100\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n");
out.write("\t\t ");
User us=null;
us=(User)session.getAttribute("user");
if(us!=null){
out.write(" \r\n");
out.write(" <tr>\r\n");
out.write("\t\t <td width=\"5%\"> </td>\r\n");
out.write("\t\t <td width=\"10%\"><a href=\"/estore/estore/listallbookaction.do\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image1','','images/index_on.gif',1)\">\r\n");
out.write("\t\t\t\t\t<img name=\"Image1\" border=\"0\" src=\"images/index.gif\" width=\"90\" height=\"36\"></a></td>\r\n");
out.write(" \t <td width=\"10%\"><a href=\"/estore/e_jsp/user/userinfo.jsp\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image2','','images/reg_on.gif',1)\">\r\n");
out.write("\t\t\t\t\t<img name=\"Image2\" border=\"0\" src=\"images/reg.gif\" width=\"92\" height=\"36\"></a></td>\r\n");
out.write("\t\t <td width=\"10%\"><a href=\"/estore/estore/user/listshoppingcart.do\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image4','','images/carts_on.gif',1)\">\r\n");
out.write("\t\t\t\t\t<img name=\"Image4\" border=\"0\" src=\"images/cart.gif\" width=\"92\" height=\"36\"></a></td>\r\n");
out.write("\t\t <td width=\"10%\"><a href=\"/estore/e_jsp/user/order.jsp\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image5','','images/order_on.gif',1)\">\r\n");
out.write("\t\t\t\t\t<img name=\"Image5\" border=\"0\" src=\"images/order.gif\" width=\"92\" height=\"36\"></a></td>\r\n");
out.write("\t\t <td width=\"10%\"><a href=\"/estore/estore/user/unloginaction.do\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image6','','images/exit_on.gif',1)\">\r\n");
out.write("\t\t\t\t\t<img name=\"Image6\" border=\"0\" src=\"images/exit.gif\" width=\"92\" height=\"36\"></a></td>\r\n");
out.write("\t\t </tr>\r\n");
out.write(" ");
}else{
out.write("<tr>\r\n");
out.write("\t\t <td width=\"5%\"> </td>\r\n");
out.write("\t\t <td width=\"10%\"><a href=\"/estore/estore/listallbookaction.do\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image1','','images/index_on.gif',1)\">\r\n");
out.write("\t\t\t\t\t<img name=\"Image1\" border=\"0\" src=\"images/index.gif\" width=\"90\" height=\"36\"></a></td>\r\n");
out.write("\t\t <td width=\"10%\"><a href=\"/estore/e_jsp/login.jsp\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image2','','images/reg_on.gif',1)\">\r\n");
out.write("\t\t\t\t\t<img name=\"Image2\" border=\"0\" src=\"images/reg.gif\" width=\"92\" height=\"36\"></a></td>\r\n");
out.write("\t\t <td width=\"10%\"><a href=\"/estore/e_jsp/login.jsp\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image4','','images/carts_on.gif',1)\">\r\n");
out.write("\t\t\t\t\t<img name=\"Image4\" border=\"0\" src=\"images/cart.gif\" width=\"92\" height=\"36\"></a></td>\r\n");
out.write("\t\t <td width=\"10%\"><a href=\"/estore/e_jsp/login.jsp\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image5','','images/order_on.gif',1)\">\r\n");
out.write("\t\t\t\t\t<img name=\"Image5\" border=\"0\" src=\"images/order.gif\" width=\"92\" height=\"36\"></a></td>\r\n");
out.write("\t\t <td width=\"10%\"><a href=\"/estore/e_jsp/login.jsp\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image6','','images/exit_on.gif',1)\">\r\n");
out.write("\t\t\t\t\t<img name=\"Image6\" border=\"0\" src=\"images/exit.gif\" width=\"92\" height=\"36\"></a></td>\r\n");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -