jsp页面传值
1 struts2对jsp页面传值
action:
1 request.setAttribute("signPhotos", signPhotos);
jsp:
1 <s:iterator value="#request.signPhotos" id="photo" status="st"> 2 <div class="ui-block-c"><a href="<%=path%>/mobileWebPage/signImgView.jsp?photoFullPath=${photo.fullWebSavePath}" class="sign-img">< img src="${photo.fullWebSavePath}"/></a></div> 3 </s:iterator>
2 jsp互相传值 url传值
1 <a href="<%=path%>/mobileWebPage/signImgView.jsp?photoFullPath=${photo.fullWebSavePath}" class="sign-img"><img src="${photo.fullWebSavePath}"/></a>
jsp接收值
1 <img style="max-width: 100%!important;height: auto!important;" src="${param.photoFullPath}"/>