File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Images not loading Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Images not loading" Watch "Images not loading" New topic
Author

Images not loading

raja srinivas
Greenhorn

Joined: Jun 22, 2001
Posts: 20
Hi guys,
In my Jsp's i am unable to load the image situated in the "images" folder one layer below. IMG SRC="images/image.gif"
anyone has any clues aboutt this. This is actually true for all jsp's in my defaultWebApp in myserver.
is there any extra configuration that needs to be done in the weblogic server 6 ?
In my servlet mapping tag in the web.xml file i have
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
Thanks,
Raja
kishore kasina
Greenhorn

Joined: Oct 01, 2001
Posts: 4
Hi Raja Srinivas,
I tried one example with d:/proj/test.jsp and d:/proj/images folders.
it works fine with following code
<img src="images/blesepa.gif"> in my test.jsp
So please check ur src"" properly and check whether the image file exists or not.
iam not sure whether there is any setting needed in web.xml.
But in my case images get reflected without setting any thing in web.xml.
with best regards
Kishore
raja srinivas
Greenhorn

Joined: Jun 22, 2001
Posts: 20
hi,
nope its not a problem with the path specified as the same thing works if use the same src="" in an HTML file. But if i view the same HTML File through Weblogic the images are not loaded. Is there a way to configure the MIME setting in the Weblogic server. I am running out of ideas here...
can someone please help me on this, I am getting desperate !!!
The same thing happens if i 'include' an external javascript file in my jsp. Anyone ???
Raja
 
 
subject: Images not loading
 
Threads others viewed
Serving static assets from a servlet
jsp without the .jsp extension.
cant call servlet from a jsp
is not available
url-pattern with slash
IntelliJ Java IDE