WebRoot/llg/goods.jsp

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.accp.myShopping.llg.car.entity.*,com.accp.myShopping.llg.car.dao.*" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
		request.setCharacterEncoding("utf-8") ;
		response.setCharacterEncoding("utf-8") ;
		
		String type=request.getParameter("type");  //接收页面类型
		String n=request.getParameter("pageNum");  //接收页数
		
		PageDao dao= new PageDao();
		
		int pageNum=1;
		if(n!=null){
			pageNum=Integer.parseInt(n);    
		}
		
		if(type==null){  
			type="man";
		}
		
		int pageCount=dao.getPageCoutn(8,type);  //总页数
		
		String title="";
		List<GoodsBean> list=null;
		
		
		if(type.equals("man")){ // 男士服装
				title="男士服装";
		}else if(type.equals("girl")){ //女士服装
				title="女士服装";
		}else if(type.equals("shose")){ //鞋子
				title="女士鞋区";
		}
		list=dao.findGoodsByPageNum(pageNum,type);

%>
<html>
  <head>
    <base href="<%=basePath%>llg/">
    
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<title><%=title%></title>
	<link href="css/index.css" rel="stylesheet" type="text/css" />
	<link href="css/detail.css" rel="stylesheet" type="text/css" />
	 <link href="css/manGoods.css" rel="stylesheet" type="text/css" />
	<script language="javascript" src="js/index.js">
</script>

</head>

<body leftmargin="35px" topmargin="0">
<%@ include file="head.jsp" %>

 
<div id="mid_info">
后面还有 118 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。