RE: Image Does Not Get Picked Up (solved)
> So the lesson here is "turn off that stupid hide-the-extension > M$ cr*p". Beyond question. That's the first thing I do on a new or unfamiliar computer. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Image Does Not Get Picked Up (solved)
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow > Sent: Thursday, September 02, 2004 11:54 AM > To: [EMAIL PROTECTED] > Subject: Re: Image Does Not Get Picked Up (solved) > > > So the lesson here is "turn off that stupid > hide-the-extension M$ cr*p". You don't already? I generally find that anything in MS that tries to "help" you, turn it off. Blow it away if you can, but at least turn it off. > > Caroline Jen wrote: > > > Hi, All: > > > > Thanks to all of you for making suggestions. > > > > Here is the story: > > > > The extension of my image was hidden when I first > > ran the application. I rolled my mouse over the name > > of that image and it showed JPEG. Therefore, I used > > the .jpeg as its extension. > > > > I did follow your advices, changed the extension > > to .jpg, and re-ran the application. I still could > > not have the image displayed. > > > > Then, I changed the way that files are displayed > > in my system - show extension of all files. It turns > > out that the extension of that image is .jpg > > > > I changed the extension to .jpg and ran the > > application again, the image did not show until I > > clicked on the "refresh button" of the browser. > > > > It turns out that the browser shows what is > > cached unless I ask it to look for what is on the > > server. > > > > Now, I have the image displayed. > > > > Thanks for your help. > > > > > > --- Erik Weber <[EMAIL PROTECTED]> wrote: > > > > > >>Please paste your verbatim html:img tag contents. > >>Please also paste your > >>verbatim HTML source that is generated by the > >>html:img tag. Please also > >>run "jar -tf HSInfo.war", and paste the (small) > >>section from that output > >>that shows where your images are in the WAR > >>hierarchy. Show the image in > >>question, please. > >> > >>Thanks, > >>Erik > >> > >> > >>Caroline Jen wrote: > >> > >> > >>>I have tried .jpg as the extension. It does not > >> > >>work. > >> > >>>I am using the Windows XP. > >>>--- Michael McGrady <[EMAIL PROTECTED]> > >> > >>wrote: > >> > >>> > >>> > >>> > >>>>Caroline Jen wrote: > >>>> > >>>> > >>>> > >>>> > >>>>>Thanks for your reply. > >>>>> > >>>>>I followed your advices: > >>>>> > >>>>>1. Try just: > >>>>>frame/common/images/dhs-header-title.JPEG (with > >> > >>no > >> > >>>>>leading slash) > >>>>> > >>>>> does not work. > >>>>> > >>>>>2. You are right. The generated HTML is an >>>>>src="..." > tag. When I clicked "View Source", > >> > >>it > >> > >>>>> > >>>>> > >>>> > >>>>is: > >>>> > >>>> > >>>> > >>>>> >>>>> > >>>>> > >> > >>>src="/HSInfo/frame/common/images/dhs-header-title.jpeg" > >>> > >>>> > >>>> > >>>> > >>>>>width="600" border="0" alt="[information]"> > >>>>> > >>>>>3. I copied the generated HTML tag (but changed > >>>>> > >>>>> > >>>> > >>>>'img' > >>>> > >>>> > >>>> > >>>>>to 'html:img' and changed 'src' to 'page') to my > >>>>>source code. > >>>>> > >>>>> does not work. > >>>>> > >>>>>4. I am using the Windows XP. > >>>>> > >>>>>5. I tried both .jpeg and .jpg > >>>>> > >>>>> does not work. > >>>>> > >>>>>I do not know what to do now. Please help more. > >>>>>--- Wendy Smoak <[EMAIL PROTECTED]> wrote: > >>>>> >
Re: Image Does Not Get Picked Up (solved)
So the lesson here is "turn off that stupid hide-the-extension M$ cr*p". Caroline Jen wrote: Hi, All: Thanks to all of you for making suggestions. Here is the story: The extension of my image was hidden when I first ran the application. I rolled my mouse over the name of that image and it showed JPEG. Therefore, I used the .jpeg as its extension. I did follow your advices, changed the extension to .jpg, and re-ran the application. I still could not have the image displayed. Then, I changed the way that files are displayed in my system - show extension of all files. It turns out that the extension of that image is .jpg I changed the extension to .jpg and ran the application again, the image did not show until I clicked on the "refresh button" of the browser. It turns out that the browser shows what is cached unless I ask it to look for what is on the server. Now, I have the image displayed. Thanks for your help. --- Erik Weber <[EMAIL PROTECTED]> wrote: Please paste your verbatim html:img tag contents. Please also paste your verbatim HTML source that is generated by the html:img tag. Please also run "jar -tf HSInfo.war", and paste the (small) section from that output that shows where your images are in the WAR hierarchy. Show the image in question, please. Thanks, Erik Caroline Jen wrote: I have tried .jpg as the extension. It does not work. I am using the Windows XP. --- Michael McGrady <[EMAIL PROTECTED]> wrote: Caroline Jen wrote: Thanks for your reply. I followed your advices: 1. Try just: frame/common/images/dhs-header-title.JPEG (with no leading slash) does not work. 2. You are right. The generated HTML is an tag. When I clicked "View Source", it is: src="/HSInfo/frame/common/images/dhs-header-title.jpeg" width="600" border="0" alt="[information]"> 3. I copied the generated HTML tag (but changed 'img' to 'html:img' and changed 'src' to 'page') to my source code. does not work. 4. I am using the Windows XP. 5. I tried both .jpeg and .jpg does not work. I do not know what to do now. Please help more. --- Wendy Smoak <[EMAIL PROTECTED]> wrote: From: "Caroline Jen" <[EMAIL PROTECTED]> page="/HSInfo/frame/common/images/dhs-header-title.JPEG" border="0" width="800" alt="[infomation]"/> The image does not get picked up in the browser. Therefore, only the text "information" is shown. Have you tried it with a relative link? Try just: frame/common/images/dhs-header-title.JPEG (with no leading slash). It's best not to hard-code the name of the webapp into anything if you can avoid it... more to modify if you change it later, or like me, run -dev and -test versions with the same code under different context names. Shouldn't the generated HTML be an src="..."> tag?? You wrote that it says 'page'. Copy and paste the entire tag from the HTML if it's still not working. If you're on UNIX, then it's case sensitive-- .JPEG and .jpeg are not the same. Does your browser understand what to do with a .jpeg file? Try renaming it .jpg and see what happens. -- Wendy Smoak My guess is that the problem is with .jpeg. There are all sorts of file extensions consistent with the JPEG protocol, e.g. jff, jif, jfif, jpe, jpeg and jpg. the former are all JPEG images and the later two (jpeg and jpg) are for JPEG compressed bitmpas and JPEG bitmaps, respectively. What your extension should be depends on what your image is. Do you know what the image is? My guess is that you have a JPEG bitmap and should be using .jpg as the extension. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush - To unsubscribe, e-mail: [EMAIL PROTECTED] === message truncated === ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Does Not Get Picked Up (solved)
Hi, All: Thanks to all of you for making suggestions. Here is the story: The extension of my image was hidden when I first ran the application. I rolled my mouse over the name of that image and it showed JPEG. Therefore, I used the .jpeg as its extension. I did follow your advices, changed the extension to .jpg, and re-ran the application. I still could not have the image displayed. Then, I changed the way that files are displayed in my system - show extension of all files. It turns out that the extension of that image is .jpg I changed the extension to .jpg and ran the application again, the image did not show until I clicked on the "refresh button" of the browser. It turns out that the browser shows what is cached unless I ask it to look for what is on the server. Now, I have the image displayed. Thanks for your help. --- Erik Weber <[EMAIL PROTECTED]> wrote: > Please paste your verbatim html:img tag contents. > Please also paste your > verbatim HTML source that is generated by the > html:img tag. Please also > run "jar -tf HSInfo.war", and paste the (small) > section from that output > that shows where your images are in the WAR > hierarchy. Show the image in > question, please. > > Thanks, > Erik > > > Caroline Jen wrote: > > >I have tried .jpg as the extension. It does not > work. > > > >I am using the Windows XP. > >--- Michael McGrady <[EMAIL PROTECTED]> > wrote: > > > > > > > >>Caroline Jen wrote: > >> > >> > >> > >>>Thanks for your reply. > >>> > >>>I followed your advices: > >>> > >>>1. Try just: > >>>frame/common/images/dhs-header-title.JPEG (with > no > >>>leading slash) > >>> > >>> does not work. > >>> > >>>2. You are right. The generated HTML is an >>>src="..." > tag. When I clicked "View Source", > it > >>> > >>> > >>is: > >> > >> > >>> >>> > >>> > >>src="/HSInfo/frame/common/images/dhs-header-title.jpeg" > >> > >> > >>>width="600" border="0" alt="[information]"> > >>> > >>>3. I copied the generated HTML tag (but changed > >>> > >>> > >>'img' > >> > >> > >>>to 'html:img' and changed 'src' to 'page') to my > >>>source code. > >>> > >>> does not work. > >>> > >>>4. I am using the Windows XP. > >>> > >>>5. I tried both .jpeg and .jpg > >>> > >>> does not work. > >>> > >>>I do not know what to do now. Please help more. > >>>--- Wendy Smoak <[EMAIL PROTECTED]> wrote: > >>> > >>> > >>> > >>> > >>> > From: "Caroline Jen" <[EMAIL PROTECTED]> > > > > > > > > > > > > > > > > >>page="/HSInfo/frame/common/images/dhs-header-title.JPEG" > >> > >> > >>> > >>> > >>> > >>> > >border="0" width="800" alt="[infomation]"/> > >The image does not get picked up in the > browser. > >Therefore, only the text "information" is > shown. > > > > > > > > > Have you tried it with a relative link? Try > just: > frame/common/images/dhs-header-title.JPEG (with > no > leading slash). > > It's best not to hard-code the name of the > webapp > into anything if you can > avoid it... more to modify if you change it > later, > or like me, run -dev > and -test versions with the same code under > different context names. > > Shouldn't the generated HTML be an src="..."> > tag?? You wrote that it > says 'page'. Copy and paste the entire tag from > > > >>the > >> > >> > HTML if it's still not > working. > > If you're on UNIX, then it's case sensitive-- > > > >>.JPEG > >> > >> > and .jpeg are not the > same. > > Does your browser understand what to do with a > > > >>.jpeg > >> > >> > file? Try renaming it > .jpg and see what happens. > > -- > Wendy Smoak > > > > >>My guess is that the problem is with .jpeg. There > >>are all sorts of file > >>extensions consistent with the JPEG protocol, e.g. > >>jff, jif, jfif, jpe, > >>jpeg and jpg. the former are all JPEG images and > >>the later two (jpeg > >>and jpg) are for JPEG compressed bitmpas and JPEG > >>bitmaps, > >>respectively. What your extension should be > depends > >>on what your image > >>is. Do you know what the image is? My guess is > >>that you have a JPEG > >>bitmap and should be using .jpg as the extension. > >> > >>Michael > >> > >> > >> > >> > >> > >- > > > > > >>To unsubscribe, e-mail: > >>[EMAIL PROTECTED] > >>For additional commands, e-mail: > >>[EMAIL PROTECTED] > >> > >> > >> > >> > > > > > > > > > >___ > >Do you Yahoo!? > >Win 1 of 4,000 free domain names from Yahoo! Enter > now. > >http://promotions.yahoo.com/goldrush > > > >--
Re: Image Does Not Get Picked Up
Please paste your verbatim html:img tag contents. Please also paste your verbatim HTML source that is generated by the html:img tag. Please also run "jar -tf HSInfo.war", and paste the (small) section from that output that shows where your images are in the WAR hierarchy. Show the image in question, please. Thanks, Erik Caroline Jen wrote: I have tried .jpg as the extension. It does not work. I am using the Windows XP. --- Michael McGrady <[EMAIL PROTECTED]> wrote: Caroline Jen wrote: Thanks for your reply. I followed your advices: 1. Try just: frame/common/images/dhs-header-title.JPEG (with no leading slash) does not work. 2. You are right. The generated HTML is an src="..." > tag. When I clicked "View Source", it is: src="/HSInfo/frame/common/images/dhs-header-title.jpeg" width="600" border="0" alt="[information]"> 3. I copied the generated HTML tag (but changed 'img' to 'html:img' and changed 'src' to 'page') to my source code. does not work. 4. I am using the Windows XP. 5. I tried both .jpeg and .jpg does not work. I do not know what to do now. Please help more. --- Wendy Smoak <[EMAIL PROTECTED]> wrote: From: "Caroline Jen" <[EMAIL PROTECTED]> page="/HSInfo/frame/common/images/dhs-header-title.JPEG" border="0" width="800" alt="[infomation]"/> The image does not get picked up in the browser. Therefore, only the text "information" is shown. Have you tried it with a relative link? Try just: frame/common/images/dhs-header-title.JPEG (with no leading slash). It's best not to hard-code the name of the webapp into anything if you can avoid it... more to modify if you change it later, or like me, run -dev and -test versions with the same code under different context names. Shouldn't the generated HTML be an tag?? You wrote that it says 'page'. Copy and paste the entire tag from the HTML if it's still not working. If you're on UNIX, then it's case sensitive-- .JPEG and .jpeg are not the same. Does your browser understand what to do with a .jpeg file? Try renaming it .jpg and see what happens. -- Wendy Smoak My guess is that the problem is with .jpeg. There are all sorts of file extensions consistent with the JPEG protocol, e.g. jff, jif, jfif, jpe, jpeg and jpg. the former are all JPEG images and the later two (jpeg and jpg) are for JPEG compressed bitmpas and JPEG bitmaps, respectively. What your extension should be depends on what your image is. Do you know what the image is? My guess is that you have a JPEG bitmap and should be using .jpg as the extension. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Does Not Get Picked Up
I have tried .jpg as the extension. It does not work. I am using the Windows XP. --- Michael McGrady <[EMAIL PROTECTED]> wrote: > Caroline Jen wrote: > > >Thanks for your reply. > > > >I followed your advices: > > > >1. Try just: > >frame/common/images/dhs-header-title.JPEG (with no > >leading slash) > > > > does not work. > > > >2. You are right. The generated HTML is an >src="..." > tag. When I clicked "View Source", it > is: > > > > >src="/HSInfo/frame/common/images/dhs-header-title.jpeg" > >width="600" border="0" alt="[information]"> > > > >3. I copied the generated HTML tag (but changed > 'img' > >to 'html:img' and changed 'src' to 'page') to my > >source code. > > > > does not work. > > > >4. I am using the Windows XP. > > > >5. I tried both .jpeg and .jpg > > > > does not work. > > > >I do not know what to do now. Please help more. > >--- Wendy Smoak <[EMAIL PROTECTED]> wrote: > > > > > > > >>From: "Caroline Jen" <[EMAIL PROTECTED]> > >> > >> > >>> >>> > >>> > >>> > >page="/HSInfo/frame/common/images/dhs-header-title.JPEG" > > > > > >>>border="0" width="800" alt="[infomation]"/> > >>>The image does not get picked up in the browser. > >>>Therefore, only the text "information" is shown. > >>> > >>> > >>Have you tried it with a relative link? Try just: > >>frame/common/images/dhs-header-title.JPEG (with no > >>leading slash). > >> > >>It's best not to hard-code the name of the webapp > >>into anything if you can > >>avoid it... more to modify if you change it later, > >>or like me, run -dev > >>and -test versions with the same code under > >>different context names. > >> > >>Shouldn't the generated HTML be an > >>tag?? You wrote that it > >>says 'page'. Copy and paste the entire tag from > the > >>HTML if it's still not > >>working. > >> > >>If you're on UNIX, then it's case sensitive-- > .JPEG > >>and .jpeg are not the > >>same. > >> > >>Does your browser understand what to do with a > .jpeg > >>file? Try renaming it > >>.jpg and see what happens. > >> > >>-- > >>Wendy Smoak > >> > > My guess is that the problem is with .jpeg. There > are all sorts of file > extensions consistent with the JPEG protocol, e.g. > jff, jif, jfif, jpe, > jpeg and jpg. the former are all JPEG images and > the later two (jpeg > and jpg) are for JPEG compressed bitmpas and JPEG > bitmaps, > respectively. What your extension should be depends > on what your image > is. Do you know what the image is? My guess is > that you have a JPEG > bitmap and should be using .jpg as the extension. > > Michael > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Does Not Get Picked Up
You can also use the "src" attribute: to get to your image using relative paths... -Yves- On Thu, 02 Sep 2004 09:44:19 -0700, Michael McGrady <[EMAIL PROTECTED]> wrote: > Caroline Jen wrote: > > >Thanks for your reply. > > > >I followed your advices: > > > >1. Try just: > >frame/common/images/dhs-header-title.JPEG (with no > >leading slash) > > > > does not work. > > > >2. You are right. The generated HTML is an >src="..." > tag. When I clicked "View Source", it is: > > > > >src="/HSInfo/frame/common/images/dhs-header-title.jpeg" > >width="600" border="0" alt="[information]"> > > > >3. I copied the generated HTML tag (but changed 'img' > >to 'html:img' and changed 'src' to 'page') to my > >source code. > > > > does not work. > > > >4. I am using the Windows XP. > > > >5. I tried both .jpeg and .jpg > > > > does not work. > > > >I do not know what to do now. Please help more. > >--- Wendy Smoak <[EMAIL PROTECTED]> wrote: > > > > > > > >>From: "Caroline Jen" <[EMAIL PROTECTED]> > >> > >> > >>> >>> > >>> > >>> > >page="/HSInfo/frame/common/images/dhs-header-title.JPEG" > > > > > >>>border="0" width="800" alt="[infomation]"/> > >>>The image does not get picked up in the browser. > >>>Therefore, only the text "information" is shown. > >>> > >>> > >>Have you tried it with a relative link? Try just: > >>frame/common/images/dhs-header-title.JPEG (with no > >>leading slash). > >> > >>It's best not to hard-code the name of the webapp > >>into anything if you can > >>avoid it... more to modify if you change it later, > >>or like me, run -dev > >>and -test versions with the same code under > >>different context names. > >> > >>Shouldn't the generated HTML be an > >>tag?? You wrote that it > >>says 'page'. Copy and paste the entire tag from the > >>HTML if it's still not > >>working. > >> > >>If you're on UNIX, then it's case sensitive-- .JPEG > >>and .jpeg are not the > >>same. > >> > >>Does your browser understand what to do with a .jpeg > >>file? Try renaming it > >>.jpg and see what happens. > >> > >>-- > >>Wendy Smoak > >> > > My guess is that the problem is with .jpeg. There are all sorts of file > extensions consistent with the JPEG protocol, e.g. jff, jif, jfif, jpe, > jpeg and jpg. the former are all JPEG images and the later two (jpeg > and jpg) are for JPEG compressed bitmpas and JPEG bitmaps, > respectively. What your extension should be depends on what your image > is. Do you know what the image is? My guess is that you have a JPEG > bitmap and should be using .jpg as the extension. > > Michael > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- For me to poop on! http://www.formetopoopon.com http://www.nbc.com/nbc/Late_Night_with_Conan_O'Brien/video/triumph.shtml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Does Not Get Picked Up
Caroline Jen wrote: Thanks for your reply. I followed your advices: 1. Try just: frame/common/images/dhs-header-title.JPEG (with no leading slash) does not work. 2. You are right. The generated HTML is an tag. When I clicked "View Source", it is: src="/HSInfo/frame/common/images/dhs-header-title.jpeg" width="600" border="0" alt="[information]"> 3. I copied the generated HTML tag (but changed 'img' to 'html:img' and changed 'src' to 'page') to my source code. does not work. 4. I am using the Windows XP. 5. I tried both .jpeg and .jpg does not work. I do not know what to do now. Please help more. --- Wendy Smoak <[EMAIL PROTECTED]> wrote: From: "Caroline Jen" <[EMAIL PROTECTED]> page="/HSInfo/frame/common/images/dhs-header-title.JPEG" border="0" width="800" alt="[infomation]"/> The image does not get picked up in the browser. Therefore, only the text "information" is shown. Have you tried it with a relative link? Try just: frame/common/images/dhs-header-title.JPEG (with no leading slash). It's best not to hard-code the name of the webapp into anything if you can avoid it... more to modify if you change it later, or like me, run -dev and -test versions with the same code under different context names. Shouldn't the generated HTML be an tag?? You wrote that it says 'page'. Copy and paste the entire tag from the HTML if it's still not working. If you're on UNIX, then it's case sensitive-- .JPEG and .jpeg are not the same. Does your browser understand what to do with a .jpeg file? Try renaming it .jpg and see what happens. -- Wendy Smoak My guess is that the problem is with .jpeg. There are all sorts of file extensions consistent with the JPEG protocol, e.g. jff, jif, jfif, jpe, jpeg and jpg. the former are all JPEG images and the later two (jpeg and jpg) are for JPEG compressed bitmpas and JPEG bitmaps, respectively. What your extension should be depends on what your image is. Do you know what the image is? My guess is that you have a JPEG bitmap and should be using .jpg as the extension. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Does Not Get Picked Up
From: "Jim Barrows" <[EMAIL PROTECTED]> > I'll agree with Wendy up to here... and then it's a style differerence... > the html:img tag also prepends the context information to the image, > so it's portable between contexts. In my experience, everything is portable, > everything changes, iow Mr. Murphy lives in my back pocket so I tend to code > with maximum flexibility in mind. Why would you need the context name as part of your image link in order to make it portable? If your images are beneath your context, a relative link will pick them up regardless of what the context name is. That's why I suggested doing away with the leading slash, but since I don't use I didn't realize it was required (as Erik pointed out). I still have no idea what Caroline's problem is, though... it's probably going to be something simple. On Unix the next thing I would suspect is file permissions, less so on Windows but still... is the file marked hidden or something weird? -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Does Not Get Picked Up
The value of the page attribute to html:img has to start with a "/". When you use the page attribute, the tag prepends the application context to the relative URL. So if you use html:img page="/frame/common/. . .", you should end up with img src="/HSInfo/frame/common/. . ." when you view source on the generated page. This is probably what you want, but there are still other things that could go wrong. For example, is your controller Servlet mapped to something like "/*"? Erik Caroline Jen wrote: Thanks for your reply. I followed your advices: 1. Try just: frame/common/images/dhs-header-title.JPEG (with no leading slash) does not work. 2. You are right. The generated HTML is an tag. When I clicked "View Source", it is: src="/HSInfo/frame/common/images/dhs-header-title.jpeg" width="600" border="0" alt="[information]"> 3. I copied the generated HTML tag (but changed 'img' to 'html:img' and changed 'src' to 'page') to my source code. does not work. 4. I am using the Windows XP. 5. I tried both .jpeg and .jpg does not work. I do not know what to do now. Please help more. --- Wendy Smoak <[EMAIL PROTECTED]> wrote: From: "Caroline Jen" <[EMAIL PROTECTED]> page="/HSInfo/frame/common/images/dhs-header-title.JPEG" border="0" width="800" alt="[infomation]"/> The image does not get picked up in the browser. Therefore, only the text "information" is shown. Have you tried it with a relative link? Try just: frame/common/images/dhs-header-title.JPEG (with no leading slash). It's best not to hard-code the name of the webapp into anything if you can avoid it... more to modify if you change it later, or like me, run -dev and -test versions with the same code under different context names. Shouldn't the generated HTML be an tag?? You wrote that it says 'page'. Copy and paste the entire tag from the HTML if it's still not working. If you're on UNIX, then it's case sensitive-- .JPEG and .jpeg are not the same. Does your browser understand what to do with a .jpeg file? Try renaming it .jpg and see what happens. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Image Does Not Get Picked Up
> -Original Message- > From: Wendy Smoak [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 02, 2004 9:19 AM > To: Struts Users Mailing List > Subject: Re: Image Does Not Get Picked Up > > > From: "Caroline Jen" <[EMAIL PROTECTED]> > > I do not know what to do now. Please help more. > > Figure out the entire URL to the image into your browser and view it. > > Something like... > http://www.example.com/HSInfo/frame/common/images/dhs-header-t > itle.JPEG > (replace www.example.com with localhost or your own server name.) > > Once you figure out what the URL of the image is, then make > sure that's what > ends up in your generated HTML. > > If the image name isn't dynamic, I would just use the src="..."> tag > directly. I'll agree with Wendy up to here... and then it's a style differerence... the html:img tag also prepends the context information to the image, so it's portable between contexts. In my experience, everything is portable, everything changes, iow Mr. Murphy lives in my back pocket so I tend to code with maximum flexibility in mind. > > Open the image in PhotoShop or some other image editing > software and make > sure it's not corrupted and really is an image? Are other > images showing up > on your page, is only this one giving you a problem? > > -- > Wendy Smoak > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Does Not Get Picked Up
From: "Caroline Jen" <[EMAIL PROTECTED]> > I do not know what to do now. Please help more. Figure out the entire URL to the image into your browser and view it. Something like... http://www.example.com/HSInfo/frame/common/images/dhs-header-title.JPEG (replace www.example.com with localhost or your own server name.) Once you figure out what the URL of the image is, then make sure that's what ends up in your generated HTML. If the image name isn't dynamic, I would just use the tag directly. Open the image in PhotoShop or some other image editing software and make sure it's not corrupted and really is an image? Are other images showing up on your page, is only this one giving you a problem? -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Image Does Not Get Picked Up
Have you tried using .jpeg instead of .JPEG? If you are on Unix, paths are case sensitive. -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 9:02 AM To: Struts Users Mailing List Subject: Re: Image Does Not Get Picked Up Thanks for your reply. I followed your advices: 1. Try just: frame/common/images/dhs-header-title.JPEG (with no leading slash) does not work. 2. You are right. The generated HTML is an tag. When I clicked "View Source", it is: 3. I copied the generated HTML tag (but changed 'img' to 'html:img' and changed 'src' to 'page') to my source code. does not work. 4. I am using the Windows XP. 5. I tried both .jpeg and .jpg does not work. I do not know what to do now. Please help more. --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Caroline Jen" <[EMAIL PROTECTED]> > > > > page="/HSInfo/frame/common/images/dhs-header-title.JPEG" > > border="0" width="800" alt="[infomation]"/> > > The image does not get picked up in the browser. > > Therefore, only the text "information" is shown. > > Have you tried it with a relative link? Try just: > frame/common/images/dhs-header-title.JPEG (with no leading slash). > > It's best not to hard-code the name of the webapp > into anything if you can > avoid it... more to modify if you change it later, > or like me, run -dev > and -test versions with the same code under > different context names. > > Shouldn't the generated HTML be an > tag?? You wrote that it > says 'page'. Copy and paste the entire tag from the > HTML if it's still not > working. > > If you're on UNIX, then it's case sensitive-- .JPEG > and .jpeg are not the > same. > > Does your browser understand what to do with a .jpeg > file? Try renaming it > .jpg and see what happens. > > -- > Wendy Smoak > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Does Not Get Picked Up
Thanks for your reply. I followed your advices: 1. Try just: frame/common/images/dhs-header-title.JPEG (with no leading slash) does not work. 2. You are right. The generated HTML is an tag. When I clicked "View Source", it is: 3. I copied the generated HTML tag (but changed 'img' to 'html:img' and changed 'src' to 'page') to my source code. does not work. 4. I am using the Windows XP. 5. I tried both .jpeg and .jpg does not work. I do not know what to do now. Please help more. --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Caroline Jen" <[EMAIL PROTECTED]> > > > > page="/HSInfo/frame/common/images/dhs-header-title.JPEG" > > border="0" width="800" alt="[infomation]"/> > > The image does not get picked up in the browser. > > Therefore, only the text "information" is shown. > > Have you tried it with a relative link? Try just: > frame/common/images/dhs-header-title.JPEG (with no > leading slash). > > It's best not to hard-code the name of the webapp > into anything if you can > avoid it... more to modify if you change it later, > or like me, run -dev > and -test versions with the same code under > different context names. > > Shouldn't the generated HTML be an > tag?? You wrote that it > says 'page'. Copy and paste the entire tag from the > HTML if it's still not > working. > > If you're on UNIX, then it's case sensitive-- .JPEG > and .jpeg are not the > same. > > Does your browser understand what to do with a .jpeg > file? Try renaming it > .jpg and see what happens. > > -- > Wendy Smoak > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Does Not Get Picked Up
From: "Caroline Jen" <[EMAIL PROTECTED]> > page="/HSInfo/frame/common/images/dhs-header-title.JPEG" > border="0" width="800" alt="[infomation]"/> > The image does not get picked up in the browser. > Therefore, only the text "information" is shown. Have you tried it with a relative link? Try just: frame/common/images/dhs-header-title.JPEG (with no leading slash). It's best not to hard-code the name of the webapp into anything if you can avoid it... more to modify if you change it later, or like me, run -dev and -test versions with the same code under different context names. Shouldn't the generated HTML be an tag?? You wrote that it says 'page'. Copy and paste the entire tag from the HTML if it's still not working. If you're on UNIX, then it's case sensitive-- .JPEG and .jpeg are not the same. Does your browser understand what to do with a .jpeg file? Try renaming it .jpg and see what happens. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]