I think you need to step back a bit and just think of JSP pages as plain old HTML pages with a bunch of <% %> scriptlet tags capable fo performing logic on the server side before being delivered to the user.
So if you want to show an image from your photo collection on your JSP page, just write:
<img src="http://www.velocityreviews.com/forums/images/photos/photo_1.jpg" /> .. like usual - with plain HTML.
But if you want a random image from your entire collection of 3000 photos to be displayed whenever the page is opened, instead write:
<img src="http://www.velocityreviews.com/forums/images/photos/photo_<%=new Random().nextInt(3000) + 1 %>.jpg" /> ..
There's a lot more to JSP than Scriptlets of course, but the fun is getting there

I knew nothing about JSP in December 2010 year ago and now (May 2012) I've got an entire board game running on it. Incidentally -->
http://apps.facebook.com/sovereign
Good luck!
-JS
EDIT: Noticed that this thread is 9 years old - how embarassing... Sure hope everyone's well.