Action中request.setAttribute("photoList", photoList);将值传到页面,但是在JSP上名称:之间不能通过${photoList.album.name}这种方式取值,但是通过${photoList[1]}取到的album的地址。我想取到name值应该怎么写?
你的photoList是什么类型呀?如果是map,就用EL表达式获取吧,${photoList['album']['name']}