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 <img
> >>>src="..." > tag. When I clicked "View Source",
> it
> >>>
> >>>
> >>is:
> >>
> >>
> >>><img
> >>>
> >>>
>
>>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]>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>><html:img
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
>
>>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 <img
> 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]