Bear Bibeault wrote:You could put the images folder at the context root. But more importantly, be sure your URLs to the images are server-relative, starting with the context path.
Thanks for your response Bear Bibeault.
I do not want to change my JSP code and it has code like this.
getServletContext().getRealPath("/") is C:\Source\rationalsdp\workspace\blcri\WebContent
I have create images folder under
Can you please suggest me where to create the folder.
As for the images folder, you should put it where something will serve the images when it receives an HTTP request for them. But right now you don't have any such thing; Websphere isn't that thing because it only serves web applications, and your images aren't in any web application.
However it's possible to set up something which will serve those images. And you know what that something is, because you described it in your post. Let me also suggest that it's a good idea for your test environment to closely mirror your production environment. I think you should know now what I'm getting at?
Paul Clapham wrote: I think you should know now what I'm getting at?
You can't seriously...
Surely you aren't suggesting that he .....
... install IIS?!?!?!? (cue dramatic chord: dun dun DUNNN)
Apache web server would be an alternative to IIS if you're working on a unix environment and can't install IIS.
Of course you would need a connector for it, and that can get kinda complicated.
For quicker dirtier fixes:
create a web app called "images" with its own web.xml file, and deploy that to your Weblogic server: voila: http://localhost:9080/images finds something to serve!
(even quicker and dirtier)
Put the images into the "default" web application (if Websphere has such a thing)