• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Loading images in JSP

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
got the solution!!
However used jstl tags instead..
 
reply
    Bookmark Topic Watch Topic
  • New Topic