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
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.
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.
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
posted
0
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 .