<%@ page language="java" import="java.util.*" pageEncoding="utf-8" contentType="text/html;charset=utf-8" %> <%@page import="com.cippe.esampleNew.service.NewEsampleService"%> <%@page import="com.cippe.esampleNew.service.NewEsampleServiceFacade"%> <%@page import="com.cippe.esample.bo.ZEsample"%> <%@page import="java.net.URLEncoder"%> <%@page import="com.cippe.corp.service.ZCorpServiceFacade"%> <%@page import="com.cippe.corp.service.ZCorpServiceImpl"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ page isELIgnored="false" %> <% //接收参数,电子样本id,跳转到第几页 String esampleidobj=request.getParameter("sid"); //System.out.println(esampleidobj); //String corpName=request.getParameter("corpName"); String openAt=request.getParameter("openAt"); //目录信息地址 String menuInfoPath="/newSample.do?method=esampleMenu&sid="+esampleidobj; //图片信息地址 String imageInfoPath="/newSample.do?method=esampleImageInfo&sid="+esampleidobj; //资源下载地址 //String resourcePath="/sample_down.do?method=dl&sid="+esampleidobj; String resourcePath="/newSample.do?method=esampleDown&sid="+esampleidobj; long esampleid=0; try{ esampleid=Long.parseLong(esampleidobj); }catch(Exception ex){ } NewEsampleServiceFacade neService=new NewEsampleService(); ZEsample zesobj=null; if(esampleid>0){ zesobj=neService.getEsampleById(esampleid); } if(zesobj==null){ out.println("没有找到指定的电子样本!!"); return; } ZCorpServiceFacade zcorpService=new ZCorpServiceImpl(); request.setAttribute("esampleId",zesobj.getId()); request.setAttribute("corpId",zesobj.getCorpId()); request.setAttribute("esampleName",URLEncoder.encode(zesobj.getSampleName(),"utf8")); request.setAttribute("corpName",URLEncoder.encode(zcorpService.getCorpInfo(zesobj.getCorpId(),"",false).getCorpName(),"utf8")); request.setAttribute("openAt",openAt); request.setAttribute("menuInfoPath",URLEncoder.encode(menuInfoPath,"utf8")); request.setAttribute("imageInfoPath",URLEncoder.encode(imageInfoPath,"utf8")); request.setAttribute("resourcePath",URLEncoder.encode(resourcePath,"utf8")); request.setAttribute("esName",zesobj.getSampleName()); request.setAttribute("width",zesobj.getImgWidth()); request.setAttribute("height",zesobj.getImgHeight()); //增加阅读次数 neService.increaseReadCount(zesobj.getId()); %> <c:out value="${esName}" escapeXml="true" /> - 2018博彩注册送彩金,ip多号注册可以送彩金,娱乐平台送彩金38元

Alternative content

博聚网