用JSP制作的个人网站

源代码在线查看: 复件_0020wangshangzhanding_jsp.java

软件大小: 10472 K
上传用户: zjqkpgz
关键词: JSP 网站
下载地址: 免注册下载 普通下载 VIP

相关代码

				package org.apache.jsp;
				
				import javax.servlet.*;
				import javax.servlet.http.*;
				import javax.servlet.jsp.*;
				import java.sql.*;
				import liangjuyan.conndb;
				
				public final class 复件_0020wangshangzhanding_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");
				
				  conndb conn = new conndb();
				  ResultSet rs_haha = conn.executeQuery("select top 3 id,title from haha ");
				  int s_id = 0;
				  String s_title="";
				  String s_detail="";
				   ResultSet rs_fuzhuang = conn.executeQuery("select top 3 fuzhuangid,wupinming,yanse,changjia,cailiao,shiyongnianxian,shengchanriqi,goumaichishu,tuijianzhishu,youdian,tupian from fuzhuang ");
				  int s_fuzhuangid = 0;
				  String s_fwupinming ="";
				  String s_fyanse="";
				  String s_fchangjia ="";
				  String s_fcailiao = "";
				  String s_fshiyongnianxian = "";
				  String s_fshengchanriqi = "";
				  String s_fgoumaichishu = "";
				  String s_ftuijianzhishu = "";
				  String s_fyoudian = "";
				  String s_ftupian="";
				  ResultSet rs_shipin = conn.executeQuery("select top 3 shipinid, wupinming,yanse,changjia,cailiao,shiyongnianxian,shengchanriqi,goumaichishu,tuijianzhishu,youdian,tupian from shipin ");
				  int s_shipinid = 0;
				  String s_swupinming = "";
				  String s_syanse= "";
				  String s_schangjia = "";
				  String s_scailiao = "";
				  String s_sshiyongnianxian = "";
				  String s_sshengchanriqi = "";
				  String s_sgoumaichishu = "";
				  String s_stuijianzhishu = "";
				  String s_syoudian = "";
				  String s_stupian="";
				  ResultSet rs_shenghuoyongpin = conn.executeQuery("select top 3 shenghuoyongpinid,wupinming,yanse,changjia,cailiao,shiyongnianxian,shengchanriqi,goumaichishu,tuijianzhishu,youdian,tupian from shenghuoyongpin ");
				  int s_shenghuoyongpinid = 0;
				  String s_hwupinming = "";
				  String s_hyanse= "";
				  String s_hchangjia = "";
				  String s_hcailiao = "";
				  String s_hshiyongnianxian = "";
				  String s_hshengchanriqi = "";
				  String s_hgoumaichishu = "";
				  String s_htuijianzhishu = "";
				  String s_hyoudian = "";
				  String s_htupian="";
				  ResultSet rs_qita = conn.executeQuery("select top 3 qitaid,wupinming,yanse,changjia,cailiao,shiyongnianxian,shengchanriqi,goumaichishu,tuijianzhishu,youdian,tupian from qita ");
				  int s_qitaid = 0;
				  String s_qwupinming = "";
				  String s_qyanse= "";
				  String s_qchangjia = "";
				  String s_qcailiao = "";
				  String s_qshiyongnianxian = "";
				  String s_qshengchanriqi = "";
				  String s_qgoumaichishu = "";
				  String s_qtuijianzhishu = "";
				  String s_qyoudian = "";
				  String s_qtupian="";
				  
				      out.write("\r\n\r\n\r\n\r\n\r\n\r\n\r\n.style1 {color: #CC3300}\r\n.style2 {color: #FF3300}\r\n.style3 {color: #FF6600}\r\n\r\n\r\n\r\n\r\n  \r\n    \r\n      \r\n        \r\n          \r\n            \r\n          \r\n          \r\n            \r\n              欢迎您登陆**网,请必须先登陆.会员惊喜多多!!\r\n            \r\n          \r\n        \r\n      \r\n      \r\n        \r\n          网上展厅\r\n");
				      out.write("            \r\n          \r\n                      发布供求信息\r\n            \r\n          \r\n                        发布求购信息\r\n            \r\n          \r\n                         在线调查\r\n            \r\n          \r\n                       流行时尚\r\n            \r\n          \r\n                       行业资讯\r\n            \r\n          \r\n                       关于我们\r\n            \r\n          \r\n        \r\n");
				      out.write("      \r\n      \r\n        \r\n          \r\n           \r\n            \r\n                            用户名\r\n                         \r\n\t\t\t        \r\n                \r\n\r\n             \r\n                          \r\n             请选择查询条件\r\n                    \r\n            \r\n              服装\r\n              饰品\r\n              生活用品\r\n              其他\r\n            \r\n             \r\n");
				      out.write("          \r\n          \r\n        \r\n      \r\n\t   \r\n        \r\n                      \r\n        \r\n      \r\n                        \r\n      \r\n         最受欢迎的服装     最受欢迎的饰品   最受欢迎的生活用品    光盘       电子产品   \r\n\t  \r\n        \r\n                      \r\n        \r\n      \r\n      \r\n");
				      out.write("        \r\n          \r\n            \r\n              \r\n                \r\n                     \r\n                                                            网上购物安全可靠,速度快。安全行好,不出门就可以知道最前沿的信息\r\n                   \r\n                \r\n              \r\n            \r\n\r\n            \r\n              \r\n                      最新资讯 \r\n              \r\n             ");
				
				                  while (rs_haha.next()) {
				
				                    s_title=rs_haha.getString(2);
				                   
				      out.write("\r\n              \r\n                \r\n\r\n                  \r\n                    \r\n                      ");
				      out.print(s_title);
				      out.write("  \r\n                    \r\n                                \r\n                 ");
				}
				      out.write("\r\n                    \r\n           \r\n          \r\n            \r\n              \r\n                   网上展厅  \r\n              \r\n              \r\n                \r\n                  \r\n                    \r\n\r\n                    \r\n                    \r\n                      编号\r\n                      物品名\r\n                      颜色\r\n                      厂家\r\n                      材料\r\n                      使用年限\r\n");
				      out.write("                      生产日期\r\n                      购买次数\r\n                      推荐指数\r\n                      优点\r\n                    \r\n                    ");
				
				                  while (rs_fuzhuang.next()) {
				                    s_fuzhuangid=rs_fuzhuang.getInt(1);
				                    s_fwupinming = rs_fuzhuang.getString(2);
				                      s_fyanse = rs_fuzhuang.getString(3);
				                       s_fchangjia = rs_fuzhuang.getString(4);
				                        s_fcailiao = rs_fuzhuang.getString(5);
				                         s_fshiyongnianxian = rs_fuzhuang.getString(6);
				                          s_fshengchanriqi = rs_fuzhuang.getString(7);
				                          s_fgoumaichishu= rs_fuzhuang.getString(8);
				                           s_ftuijianzhishu= rs_fuzhuang.getString(9);
				                            s_fyoudian= rs_fuzhuang.getString(10);
				                  
				      out.write("\r\n                    \r\n                      				      out.print(s_fuzhuangid);
				      out.write('"');
				      out.write('>');
				      out.print(s_fuzhuangid);
				      out.write("\r\n                      ");
				      out.print(s_fwupinming);
				      out.write("\r\n                      ");
				      out.print(s_fyanse);
				      out.write("\r\n                      ");
				      out.print(s_fchangjia);
				      out.write("\r\n                      ");
				      out.print(s_fcailiao);
				      out.write("\r\n                      ");
				      out.print(s_fshiyongnianxian);
				      out.write("\r\n                      ");
				      out.print(s_fshengchanriqi);
				      out.write("\r\n                      ");
				      out.print(s_fgoumaichishu);
				      out.write("\r\n                      ");
				      out.print(s_ftuijianzhishu);
				      out.write("\r\n                      ");
				      out.print(s_fyoudian);
				      out.write("\r\n                    \r\n                    ");
				  }
				      out.write("\r\n                  \r\n                  \r\n                    \r\n\r\n                    \r\n                \r\n              \r\n            \r\n          \r\n        \r\n      \r\n      \r\n  \r\n\r\n\r\n\r\n");
				conn.close();
				      out.write('\r');
				      out.write('\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);
				    }
				  }
				}
							

相关资源