Here String array contains "url"s for different images which actually will be selected from the database as per the category selected by the user.Now when the user clicks on a particular photo then photo.jsp will be called where large image of the thumbnail will be shown.But i dont understand how "photo.jsp" will know which thumbnail was selected so that it can retrieve the larger image for displaying.I want to know if there is any way by which we can send the parameter to the photo.jsp through href. Please hepl me in this!!! Please let me know if this can be designed in some other way.
HI Mr Bibeault, Thanks for your response.I understand that by writing String in <%!%> construct it becomes instance variable for this JSP so it wont be thread safe,we should write in within scriplet itself.But at this stage i am not thinking about coding details ,I am just in designing phase.So currently it will be great help if you can help me in designing this & help me out on the problem that i have mentioned. Thanks in advance
Originally posted by venkatesh pendharkar: But at this stage i am not thinking about coding details ...
That is an attitude that will get you into big trouble. Problems such as you have created here are easy to avoid and have a way of causing major problems later when they accidentally remain uncorrected.
Always write code, even test or prototype code, properly. Otherwise, you are just asking for headaches! [ February 01, 2007: Message edited by: Bear Bibeault ]
You know all the file names up front, and all you need to do is to switch out the src of the <img> tag in order to change which image is shown, so there's no need to go back to the server every time the image is to be changed.