栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

基于javaweb+SSH校园二手交易平台

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

课程设计,大作业,毕业设计,项目练习,学习演示等

	
	

	
	public static PageManager getPage(String path, int pageSize,
			HttpServletRequest request) {
		return new PageManager(path, pageSize, request);

	}

	
							
						
					
<% String hql = " from Pj where 1=1 and goodid='"+gid+"' "; String url = "/myproject/good.jsp?1=1&gid="+gid; hql+=" order by id desc"; %>
        
      
      
		goods.setNote(note);
		if(!upFileFileName.equals("")){
			String hz = upFileFileName.substring(upFileFileName.lastIndexOf(".")+1);
			String img = Info.getAutoId()+"."+hz;
			String filePath=ServletActionContext.getServletContext().getRealPath("upfile")+"/"+img;
			File targetFile=new File(filePath);
			upLoadFile(upFile,targetFile);
			goods.setFilename(img);
		}
		commonDAO.update(goods);
		suc="编辑商品成功";
		return "success";
	}
	
	//设置特价
	public String goodstjset(){
		Goods gd = (Goods)commonDAO.findById(id, "Goods");
		if(!tprice.equals("")){
			if(Double.valueOf(tprice)>=Double.valueOf(gd.getPrice())){
				suc="特价必须低于原价!";
				
			}else{
				gd.setTprice(tprice);
				commonDAO.update(gd);
	
	public static void main(String[] g )
	{
	System.out.print(Info.getDateStr());
	}
	


	
	 public static String getUTFStr(String str) {
		 if(str==null){
			 return "";
		 }
		 
		 try {
			str =  new String(str.getBytes("ISO-8859-1"),"utf-8");
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
					
				
				
   			DemoObj d51 = new DemoObj();
   			d51.id="160"; d51.pId="38"; d51.code="111403"; d51.name="土地整理储备贷款"; d51.state="0";
   			demoDataMap.put(d51.id, d51);
   			DemoObj d52 = new DemoObj();
   			d52.id="161"; d52.pId="38"; d52.code="111404"; d52.name="园区开发区建设贷款"; d52.state="0";
   			demoDataMap.put(d52.id, d52);
   			DemoObj d53 = new DemoObj();
   			d53.id="39"; d53.pId="5"; d53.code="111500"; d53.name="项目融资贷款"; d53.state="0";
   			demoDataMap.put(d53.id, d53);
   			DemoObj d54 = new DemoObj();
   			d54.id="397"; d54.pId="39"; d54.code="aaa"; d54.name="bbb"; d54.state="0";
   			demoDataMap.put(d54.id, d54);
   			DemoObj d55 = new DemoObj();
   			d55.id="40"; d55.pId="5"; d55.code="111600"; d55.name="授信垫款"; d55.state="0";
   			demoDataMap.put(d55.id, d55);
											
  • Strawberry
  • Vanilla
  • Eggless Cakes
  • Weight

    		Map session= ServletActionContext.getContext().getSession();
    		session.remove("member");
    		return "success";
    	}
    	
    	//管理员退出
    	public String adminExit(){
    		Map session= ServletActionContext.getContext().getSession();
    		session.remove("admin");
    		return "success";
    	}
    	
    	public int getId() {
    		return id;
    	}
    	public void setId(int id) {
    		this.id = id;
    	}
    	public String getUsertype() {
    		return usertype;
    	}
    
    	 * 
    	 * @param block
    	 */
    	private void md5Transform(byte block[]) {
    		long a = state[0], b = state[1], c = state[2], d = state[3];
    		long[] x = new long[16];
    		Decode(x, block, 64);
    		
    		a = FF(a, b, c, d, x[0], S11, 0xd76aa478L); 
    		d = FF(d, a, b, c, x[1], S12, 0xe8c7b756L); 
    		c = FF(c, d, a, b, x[2], S13, 0x242070dbL); 
    		b = FF(b, c, d, a, x[3], S14, 0xc1bdceeeL); 
    		a = FF(a, b, c, d, x[4], S11, 0xf57c0fafL); 
    		d = FF(d, a, b, c, x[5], S12, 0x4787c62aL); 
    		c = FF(c, d, a, b, x[6], S13, 0xa8304613L); 
    		b = FF(b, c, d, a, x[7], S14, 0xfd469501L); 
    		a = FF(a, b, c, d, x[8], S11, 0x698098d8L); 
    		d = FF(d, a, b, c, x[9], S12, 0x8b44f7afL); 
    		c = FF(c, d, a, b, x[10], S13, 0xffff5bb1L); 
    		b = FF(b, c, d, a, x[11], S14, 0x895cd7beL); 
    		a = FF(a, b, c, d, x[12], S11, 0x6b901122L); 
    
    	private int index=1;
    	private CommonDAO commonDAO;
    	private File upFile;
    	private String upFileContentType;
    	private String upFileFileName;
    	private static final int FILE_SIZE=16*1024;
    	
    	private String bsid;
    	
    	//文件上传
    	public void upLoadFile(File source,File target){
    		  InputStream in=null;
    		  OutputStream out=null;
    		  try{
    		   in=new BufferedInputStream(new FileInputStream(source),FILE_SIZE);
    		   out=new BufferedOutputStream(new FileOutputStream(target),FILE_SIZE);
    		   byte[] image=new byte[FILE_SIZE];
    		   while(in.read(image)>0){
    		    out.write(image);
    		   }
    		  }catch(IOException ex){
    		   ex.printStackTrace();
    		  }finally{
    		   try{
    

    运行环境

    Java≥8、Tomcat≥7.0、MySQL≥5.7

    开发工具

    eclipse/idea/myeclipse/sts等均可配置运行

    技术框架

    JSP JavaScript jquery bootstrap Spring Struts2 Hibernate

    适用

    课程设计,大作业,毕业设计,项目练习,学习演示等

    功能说明

    后台管理员:管理各种信息

    用户:购买和发布商品,留言,求购等

    前台

    后台


    转载请注明:文章转载自 www.mshxw.com
    我们一直用心在做
    关于我们 文章归档 网站地图 联系我们

    版权所有 (c)2021-2022 MSHXW.COM

    ICP备案号:晋ICP备2021003244-6号

    评价等级 评价内容 评价人 评价时间