• 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

Image display in websphere4.0

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i'm trying to run my application in websphere4.0.
application is running.But the images are not loaded in my application.
Images are in Images folder.
calling my image is (/images/ss.gif).
But it's not able to show the image.if i calling the image using context root (ctx/images/ss.gif).
the image is loaded.what's solution for loading the image without using context root.
pls send me the answer.
 
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by subasorupa:
i'm trying to run my application in websphere4.0.
application is running.But the images are not loaded in my application.
Images are in Images folder.
calling my image is (/images/ss.gif).
But it's not able to show the image.if i calling the image using context root (ctx/images/ss.gif).
the image is loaded.what's solution for loading the image without using context root.
pls send me the answer.


How are you wanting to "show" the images? Are you trying to find out how to construct a URL for the <img> tag's href attribute? Try...
request.getContextPath() + "/images/ss.gif"
Or, you could use the Struts <html:img> tag, which will do this for you automagically.
 
reply
    Bookmark Topic Watch Topic
  • New Topic