I am manually checking array length and assigning the image. I need some dynamic calculation for assigning the image. Also this code works only upto 7 images. I need to display even the array length is 25, 50 etc...
Kindly check it out and give me a solution.
Joined: Apr 13, 2003
Try reading up on the modulo (%) operator. I guess it should be quite helpful. [ May 17, 2007: Message edited by: Anupam Sinha ]
We're pleased to have you here with us in the JSP forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.