add dynamic content to jsp page
Question: hi i want to add images to my jsp page dynamically..
int count=new File(filepath).listFiles().length;
think from the above code i get count value as 10.now i want to add 10.jpg to my jsp page
by the following code.(now i want to add a image to my jsp page with respective the count value)
<td><img src="images/ln/headings/"+count.jpg+""></td> (all my jpg files in images/ln/headings)
if the count value is 9, it has to add 9.jpg to my jsp page.
so, plz observe the above html code and correct that code and give correct one.