File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes unable to see the image Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "unable to see the image" Watch "unable to see the image" New topic
Author

unable to see the image

Kranthi Kondapaka
Ranch Hand

Joined: Sep 17, 2007
Posts: 31
hi,
i am able to view the .jpg image in the jsf designer view but unable to see in the browser.
is the problem in my application are is the problem with browser
Gaurav Ram
Ranch Hand

Joined: Feb 23, 2008
Posts: 32
Hi,

When you open your browser and calls a page, then do the view source of that page and see that what path is there generated for image. Just check whether there correct path is coming or not.

Thanks,
Gaurav
Kranthi Kondapaka
Ranch Hand

Joined: Sep 17, 2007
Posts: 31
hi,
i checked out with the page source also

my project structure is something like this

project
|
webroot
|
web-inf
|
images
|
video.jpg
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35438
    
    9
Nothing you keep in WEB-INF will be served to a client, so a browser can't access those images. Move the images directory to the same level as the WEB-INF directory.


Android appsImageJ pluginsJava web charts
Kranthi Kondapaka
Ranch Hand

Joined: Sep 17, 2007
Posts: 31
still i am unable to view the image.
Kranthi Kondapaka
Ranch Hand

Joined: Sep 17, 2007
Posts: 31
and also I am getting a warning something like this

13:29:39,910 WARN [Parameters] Parameters: Invalid chunk ignored.

what it means and what it refers.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35438
    
    9
In that case, follow Gaurav's advice to check which path the HTML code is actually referring to. Then make that the image is accessible under that path (in other words, that there is no permission problem that prevents the image from being served). You should also check the web server logs to see if the image request comes in OK, and is answered by an HTTP 200 response.
Kranthi Kondapaka
Ranch Hand

Joined: Sep 17, 2007
Posts: 31
thanks guys,
i got the solution.
As Dittmer said,i shifted the images folder to the WEB-INF level and i am able to view the images .
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: unable to see the image
 
Similar Threads
img tag does not display image
Want to insert image in frame
Unable to Display image uploaded from browser until the webapp directory is refreshed manually
swing
can i veiw image in an appletviewer