Hello All,
Could you tell if it is possible to display random picture in a web page using some
tag libs?
I mean I have a directory on server with set of pictures (jpg files) I would like
display
one of them on the webpage. Each opening of the page should return the random one.
Is it
The short answer is: Yes, absolutely. The easiest thing to do might be to use a
context-param or env-entry element in web.xml to define a maximum value for
the image names. Then, your taglib could just use java.util.Random..nextInt to
generate the random number. I'm pretty sure Random is