Hi Ash,
you want to display four images per row.so create a four <div> <img src tag> </div>or <table> <img src tag></table>
in your jsp.
Iterate the loop for 4times and give <br>
Then only your images will display in proper alignment.
Swastik Dey idea will work but the image will not display in proper alignment.
Check this
Getty Images link.
right click on the page and check the source by clicking view source.
For more information check all images website even google image.
you will come to know.
Regards,
Sriram.V