---
title: "jsp"
author: "maicose"
date: "2014-12-09T12:09:26Z"
tags: ["JSP"]
categories: ["编程语言"]
slug: "jsp"
draft: false
lastmod: "2014-12-09T12:09:26Z"
id: 2164436
url: "https://maicose.iteye.com/blog/2164436"
---

3 要隐藏的话加个DIV

[公司信息](actions/userAction!toCompany?user.userId=%24%7Buser.userId%7D "查看公司")

第${it }项 4 for(User user : users){ System.out.println(user.getName());//获取用户名 System.out.println(user.getPassWord());//获取密码 } 5 // 次资讯后跳转到次资讯列表，url加上id String parentId = request.getParameter( "parentId" ); if( StringUtils.isNotEmpty( parentId ) ) { return "redirect:/mallAdmin/brandNews/newsList?parentId=" + parentId; } return "redirect:/mallAdmin/brandNews/newsList";（重定向） [![审核通过]($%7Bctx%7D/images/acct/audit.jpg "审核通过")]($%7Bctx%7D/mallAdmin/brandNews/check/$%7Bbean.id%7D/1?parentId=%24%7BparentId%7D) [![]($%7Bctx%7D/images/acct/shenhe.jpg "审核不通过")]($%7Bctx%7D/mallAdmin/brandNews/check/$%7Bbean.id%7D/2?parentId=%24%7BparentId%7D) [![审核通过]($%7Bctx%7D/images/acct/audit.jpg "审核通过")]($%7Bctx%7D/mallAdmin/brandNews/check/$%7Bbean.id%7D/1) [![]($%7Bctx%7D/images/acct/shenhe.jpg "审核不通过")]($%7Bctx%7D/mallAdmin/brandNews/check/$%7Bbean.id%7D/2) 7 图片显示goodsconsult，，sellaftercomtroller有web/front文件夹下的 一步：数据库加一个条件 and display\_no in (0,1) // 查询商品图片 List imgs = new ArrayList(); Map map = new HashMap(); if( ids != null && ids.size() &gt; 0 ) { map.put( "list", ids ); map.put( "type", CommodityImg.MAIN\_IMG\_TYPE ); map.put( "displayNo", 0 );//二步：取第一张图片 imgs = commodityImgService.getCommodityImgs( map ); } Map imgsMap = new HashMap(); if( imgs != null && imgs.size() &gt; 0 ) { for( CommodityImg commodityImg : imgs ) { if( !StringUtil.empty( commodityImg.getImgPath() ) ) { imgsMap.put( commodityImg.getCommodityId(), commodityImg.getImgPath() ); [![]($%7BimgsMap%5Bbean.commodityId%5D%7D)]($%7Bctx%20%7D/commodity/details/$%7Bbean.commodityId%7D) 8 导入java-formatter.xml格式代码文件 1、windows-preferences-java-code style-formatter 2、editor-save actions 9 [标签添加提示信息 onclick="{if(confirm('确定要删除记录吗?')){return true;}return false;}"]() [删除](%E5%9C%B0%E5%9D%80) alt标签实际上是网站上图片的文字提示。 10 图片懒加载 js，lazyLoad官网有方法 11 异步请求/同步请求