src="/data/user/temp/<%=list.get(i).get("userId")%>.jpg"你这个是从服务器的更路径下获取data....?加上这里句试试<%=path %>其中path是eclipse新建jsp页面默认在head上面申明的一变量,如果没有就用request.getContextPath()代替。

解决方案 »

  1.   

    <img src="**.jsp?id=***" style="margin-bottom: 5px;width: 60px;height: 60px;"/>然后在jsp中获取id,并把BufferedImage写入response的outputstream就行了。
      

  2.   

    BufferedImage怎么写入response的outputdtream?
      

  3.   

    BufferedImage怎么写入response的outputdtream?使用javax.imageio.ImageIO.write就可以了。
      

  4.   

    我在jsp中调用response.getOutputStream()方法是报错:ERROR [PortletRequestDispatcherImpl:137] org.apache.jasper.JasperException,这是什么原因导致的?我google到的几个方法都不适用。