Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
Sumit Patil wrote:In your code you are using sunday_logo.jpg but in the directory structure its not present.
Can you check if the given file is present in the images folder?
Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
Tim Moores wrote:Unless your web app is the ROOT web app, starting the path with "/" (or "\") is incorrect. Using a local path like "C:/" also won't work.
Sumit Patil wrote:Remove the "/" in front of images and try again.
Sorry i misinterpreted your directory structure.
Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
| B.E IT | SCJP 6.0 98 % |
Ashish Agre wrote:try this line of code.
.............
http://localhost:8080/images/sunday_logo.jpg in browser's url
Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
Sumit Patil wrote:Your app is deployed on Tomcat or Glassfish?
..............
Hope this helps.
shilpa deshmukh-kadam wrote:My project is located at.....
C:\Users\Documents\NetBeansProjects\sunday
now folders inside sunday are
build,images,nbproject,src,web,menu,build.xml
jsp psges are inside the web folder
Thank you
Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
Sumit Patil wrote:......In your first post, you mentioned the location of images folder as myapplication-->web pages-->images.
Now which is the correct path? Where is the sunday_logo.jpg is located? point the img tag to proper location of the jpg file and it will work.
Tim Moores wrote:This is a typical problem that arises when running a web app in an IDE instead of a proper servlet container. My guess would be that you would have long since solved the problem if the IDE was not part of the equation.
Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
shilpa deshmukh-kadam wrote:
There is palette tab where we got image control we have to just double click on it. then browse image file with browse botton. set height and width.......then click ok
Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Sumit Patil wrote:
Why don't you use your browser to see the path of the image file. This will help you learn how to add paths in a jsp/html file for later projects.
Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |