• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem displaying images from files in Firefox  RSS feed

 
Anne Crace
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp that is an Aqualogic portlet, and it is supposed to display a series of images 5 columns wide. It works fine in IE 6 but I get the place holders in Firefox. Here is the source code from Firebug for one of the images: file:////dodocrep/images/MyImgEdits/thumbs/Eye_Spy1255632817114.jpg
( //dodocrep is a virtual directory residing below the root directory of an IIS server and it is not on my localhost) I have a collection of URIs containing the paths to the images and am looping through them to do the output. I used File.toURI() to get these URIs. The only thing I see that might be suspect is the 4 forward slashes after file. The browser won't render that as an address but works fine if I take off the leading file://. Any thoughts?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aside from the Firefox issue, you do realize that that file URL won't work anywhere other than on systems that have that drive mapped? Right?
 
Anne Crace
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The system that this portlet will be deployed on will have a drive mapped to a similar directory, so that is pretty much not a problem. I am using a Value Object to hold data about the images. Here is the constructor:


I am thinking I need to do something with the URL class (http://dodocrep/mypath/myfile works just fine) and a plain old String for the path.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deployment is moot -- what about the systems where the browsers will be run?
 
Anne Crace
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deployment is moot -- what about the systems where the browsers will be run?

It is on a closed intranet. Secured, intelligence environment, if that helps. Will the URL option give me a better result?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If every system that will browse the page has the same drive mapped in the same way, it could work. But it's not the way I would handle it. I always use HTTP.
 
Anne Crace
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the point I was getting at. The http option works every time. I am looking into javascript to display the images as a slideshow. JQuery specifically. I am pretty green with server side Java and javascript so I may be asking more ?s!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!