This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Loading images in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Loading images in JSP " Watch "Loading images in JSP " New topic
Author

Loading images in JSP

Raman Ghai
Ranch Hand

Joined: Jan 01, 2012
Posts: 51
Hi there ,

I have stored the imageNames in a database table and images are stored on server in folder user-images.
While retrieving the images , I add all the imageNames to an ArrayList and store the arraylist in sessionScope.
However I am not able to get the images on the JSP page .


JSP Page code that tries to load images from server


IDE : Netbeans 7.0.1
Framework : Struts 1
ActionClass : ImageFormAction
Method which saves images in session scope: get




I know scriptlets should not be used as they have become obsolete . So if you can give me a better alternative , you are always welcome.

After 5 minutes ....
Now I have got just one image . However there are multiple images in folder user-images... Suggestions are welcome....
Raman Ghai
Ranch Hand

Joined: Jan 01, 2012
Posts: 51
got the solution!!
However used jstl tags instead..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loading images in JSP
 
Similar Threads
Pressing the enter key receive extra invalid data
scroll bar down
HTML validation errors
Getting null while trying to get value of Multiple list
Problem hiding div within div