Jsp-el again .
hi all,
I want to re-write the following scriptlet code using el . I've achieved some succes but Iam getting stuck in the <break> syntax. how do i stop the loop processing on some condition.
for reference iam posting my original working code using scriplet tags.
Please help .
and Thanks in advance.
<%
/*
this needs the URL that shows the latest thumbnail. In fact, perhaps the three latest thumbnails... */
photolink = "Sorry, there are no photos recorded at this site.";
ArrayList photos = (ArrayList)((MapBean)pageContext.getAttribute("map")).getPhotos();
for(int j = 0 ; j<photos.size(); j++)
{
if(j==4)break;
if(j==0){
photolink = "Click to view full-size:<br>";
}
spb =(SitePhotoBean)photos.get(j);
photoid = spb.getPhotoid();
photolink += "<a href='http://147.147.2.91:7001/pfk-deploy/GetImage?photo=" + photoid + "' target='_New'><img src='http://147.147.2.91:7001/pfk-deploy/thumbnail.do?photo=" + photoid +"' border=0 width=75 height=56></a>牋";
}
%>

