📄 goodselectone_jsp.java
字号:
package org.apache.jsp.managerGoods;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import java.sql.*;
import java.util.*;
import com.domain.GoodsForm;
public final class goodSelectOne_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;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", 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\r\n\r\n\r\n");
GoodsForm form=(GoodsForm)request.getAttribute("form");
out.write("\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link rel=\"stylesheet\" href=\"css/css.css\">\r\n<title></title>\r\n</head>\r\n\r\n<body>\r\n<form name=\"form\" method=\"post\" action=\"cart_add.jsp\">\r\n\r\n\r\n<br>\r\n<div align=\"center\">\r\n <p>查看商品清单</p>\r\n</div>\r\n<table width=\"99%\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFFFFF\" bordercolorlight=\"#FFFFFF\" bordercolordark=\"#819BBC\">\r\n <tr>\r\n <td width=\"36%\" rowspan=\"4\" height=\"120\"><div align=\"center\">\r\n <input name=\"pricture\" type=\"image\" src=\"");
out.print(form.getPicture());
out.write("\" width=\"110\" height=\"100\">\r\n </div></td>\r\n <td width=\"64%\" height=\"30\"><div align=\"center\">\r\n <table width=\"71%\" height=\"20\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td>货品名称:");
out.print(form.getName());
out.write(" <input type=\"hidden\" name=\"goodsId\" value=\"");
out.print(form.getId());
out.write("\" /></td>\r\n </tr>\r\n </table>\r\n </div></td>\r\n </tr>\r\n <tr>\r\n <td height=\"30\"><div align=\"center\">\r\n <table width=\"71%\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td>");
if(form.getMark().toString().equals("1")){
out.write("\r\n特 价:");
out.print(form.getFreePrice());
out.write("元<input type=\"hidden\" name=\"price\" value=\"");
out.print(form.getFreePrice());
out.write("\"/>\r\n");
}else{
out.write("\r\n现 价:");
out.print(form.getNowPrice());
out.write("元<input type=\"hidden\" name=\"price\" value=\"");
out.print(form.getNowPrice());
out.write("\"/>\r\n");
}
out.write("</td>\r\n </tr>\r\n </table>\r\n</div></td>\r\n </tr>\r\n <tr>\r\n <td height=\"30\"><div align=\"center\">\r\n <table width=\"71%\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td>简 介:");
out.print(form.getIntroduce());
out.write(" </td>\r\n </tr>\r\n </table>\r\n </div></td>\r\n </tr>\r\n <tr align=\"center\">\r\n <td height=\"30\"><input type=\"button\" name=\"close\" value=\"关闭窗口\" onClick=\"window.close()\"> <input type=\"submit\" name=\"Submit\" value=\"放入购物车\"></td>\r\n\r\n </tr>\r\n</table>\r\n</form>\r\n</body>\r\n</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -