Cannot show image after the first time

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am new to Frontpage and web. I use Frontpage to build a login page for the
company. On the page there are a compnay logo, userid and password fields.
The first time to browser the page is ok. When this page is redisplayed
again, the logo cannot shown. There is only a little red "x" at the left
hand coner.

Look for advise. Many thanks.
 
And what does the red x point to (check it's properties)

--




| I am new to Frontpage and web. I use Frontpage to build a login page for the
| company. On the page there are a compnay logo, userid and password fields.
| The first time to browser the page is ok. When this page is redisplayed
| again, the logo cannot shown. There is only a little red "x" at the left
| hand coner.
|
| Look for advise. Many thanks.
 
The red x usually means that the image was not imported
into your Front Page web from elsewhere on your hard
drive. Go back and import it, relink it and try again.
 
I had deleted the image many times and re-inserted it again and again. But
still the problem exist. When I open link, I got HTTP Status 404" as error.
It says the requested resource (image) is not available. I don't know why
it is not available.

The process is I have a html(named A) posts to a servlet and forwards to A
again.

Any idea please.
 
I had deleted and inserted the image many times but still having the same
problem. I got HTPP Status 404 saying the requested resource (image) is not
available. The process is I have a html(named A) which posts to a servlet
and the servlet forwards back to the html(A). Please help.
 
Can you provide a URL to the page with this image?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Do you mean the full path? for example: c:\program files\ ... right? If I
misunderstand you, please give me an example of URL. Thanks
 
It would be the URL to the page on the internet, such http://www.yourdomainname.com/pagename.htm

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Oh Thomas, I think I have misunderstand you. Do you mean that I give you the
URL of my page so that you can try? I am testing it in my local laptop.
Here is the code.

<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>TopYard Technologies Limited - ERP Systems</title>
</head>
<body topmargin="0" leftmargin="0">
<p align="left"></a></p>
<p align="left"><img border="0" src="../images/topyard%203.png" width="317"
height="102"></p>
<p align="left"><b><font size="5"> Welcome to TopYard Technologies Limited -
ERP
System !</font></b></p>
<p align="left"><font size="6"><b> </b></font><b><font size="5">Please
login:</font></b></p>
<form method="post" action="/TopYard/ValidateUserName">
<p align="left"> User Name: <input type="text" name="username"
size="20" tabindex="1" maxlength="20"></p>
<p align="left"> Password:
<input type="password" name="password" size="20" tabindex="2"
maxlength="15"></p>
<p align="left">
<input type="submit" value="Submit" name="submit" tabindex="3">
<input type="reset" value="Reset" name="reset" tabindex="4"></p>
</form>
</body>
</html>
 
Oh Thomas, I think I have misunderstand you. Do you mean that I give you the
URL of my page so that you can try? I am testing it in my local laptop.
Here is the code.

<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>TopYard Technologies Limited - ERP Systems</title>
</head>
<body topmargin="0" leftmargin="0">
<p align="left"></a></p>
<p align="left"><img border="0" src="../images/topyard%203.png" width="317"
height="102"></p>
<p align="left"><b><font size="5"> Welcome to TopYard Technologies Limited -
ERP
System !</font></b></p>
<p align="left"><font size="6"><b> </b></font><b><font size="5">Please
login:</font></b></p>
<form method="post" action="/TopYard/ValidateUserName">
<p align="left"> User Name: <input type="text" name="username"
size="20" tabindex="1" maxlength="20"></p>
<p align="left"> Password:
<input type="password" name="password" size="20" tabindex="2"
maxlength="15"></p>
<p align="left">
<input type="submit" value="Submit" name="submit" tabindex="3">
<input type="reset" value="Reset" name="reset" tabindex="4"></p>
</form>
</body>
</html>
 
1) rename all files to remove spaces
- that's what is adding the %20 to the file name "topyard 3.png" and breaking links
2) some browsers don't support .png - try a .gif or .jpg
3) is the image (say topyard_3.png) in one folder up (../) in the images folder both before and after you log in (the page w/ the
code you posted)
--




| Oh Thomas, I think I have misunderstand you. Do you mean that I give you the
| URL of my page so that you can try? I am testing it in my local laptop.
| Here is the code.
|
| <html>
| <head>
| <meta http-equiv="Content-Language" content="en-us">
| <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
| <meta name="ProgId" content="FrontPage.Editor.Document">
| <title>TopYard Technologies Limited - ERP Systems</title>
| </head>
| <body topmargin="0" leftmargin="0">
| <p align="left"></a></p>
| <p align="left"><img border="0" src="../images/topyard%203.png" width="317"
| height="102"></p>
| <p align="left"><b><font size="5"> Welcome to TopYard Technologies Limited -
| ERP
| System !</font></b></p>
| <p align="left"><font size="6"><b> </b></font><b><font size="5">Please
| login:</font></b></p>
| <form method="post" action="/TopYard/ValidateUserName">
| <p align="left"> User Name: <input type="text" name="username"
| size="20" tabindex="1" maxlength="20"></p>
| <p align="left"> Password:
| <input type="password" name="password" size="20" tabindex="2"
| maxlength="15"></p>
| <p align="left">
| <input type="submit" value="Submit" name="submit" tabindex="3">
| <input type="reset" value="Reset" name="reset" tabindex="4"></p>
| </form>
| </body>
| </html>
|
|
|
|
| "Peter" wrote:
|
| > I am using Tomcat as the web server locally for testing. So the URL will be
| > like http://localhost:8080/YopYard/images/topyard3.png. Am I right?
| >
| >
| > "Thomas A. Rowe" wrote:
| >
| > > It would be the URL to the page on the internet, such http://www.yourdomainname.com/pagename.htm
| > >
| > > --
| > > ==============================================
| > > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > > WEBMASTER Resources(tm)
| > >
| > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > > ==============================================
| > > To assist you in getting the best answers for FrontPage support see:
| > > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > >
| > > | > > > Do you mean the full path? for example: c:\program files\ ... right? If I
| > > > misunderstand you, please give me an example of URL. Thanks
| > > >
| > > >
| > > > "Thomas A. Rowe" wrote:
| > > >
| > > >> Can you provide a URL to the page with this image?
| > > >>
| > > >> --
| > > >> ==============================================
| > > >> Thomas A. Rowe (Microsoft MVP - FrontPage)
| > > >> WEBMASTER Resources(tm)
| > > >>
| > > >> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > > >> ==============================================
| > > >> To assist you in getting the best answers for FrontPage support see:
| > > >> http://www.net-sites.com/sitebuilder/newsgroups.asp
| > > >>
| > > >> | > > >> > BTW, the image size is 70KB. Would that be too large to download?
| > > >> >
| > > >> > "Rick Budde" wrote:
| > > >> >
| > > >> >> The red x usually means that the image was not imported
| > > >> >> into your Front Page web from elsewhere on your hard
| > > >> >> drive. Go back and import it, relink it and try again.
| > > >> >>
| > > >> >> >-----Original Message-----
| > > >> >> >I am new to Frontpage and web. I use Frontpage to build
| > > >> >> a login page for the
| > > >> >> >company. On the page there are a compnay logo, userid
| > > >> >> and password fields.
| > > >> >> >The first time to browser the page is ok. When this
| > > >> >> page is redisplayed
| > > >> >> >again, the logo cannot shown. There is only a little
| > > >> >> red "x" at the left
| > > >> >> >hand coner.
| > > >> >> >
| > > >> >> >Look for advise. Many thanks.
| > > >> >> >.
| > > >> >> >
| > > >> >>
| > > >>
| > > >>
| > > >>
| > >
| > >
| > >
 
I have removed the space and converted it to jpeg - topyard3.jpg. The image
file is in images folder before and after login, I suppose. I cannot see how
topyard3.jpg will move out of the image folder.

After I have done the above, the problem still happens. The first when the
browser loads the html, the image file is loaded. But after the login
without typing user name and passward, the same html should be loaded again.
but this time the image file is not loaded.
 
Only if the 2 file are in the same relative location to the same image file and the links are identical

The image doesn't move but the other files can be in different folders and have different code

--




| I have removed the space and converted it to jpeg - topyard3.jpg. The image
| file is in images folder before and after login, I suppose. I cannot see how
| topyard3.jpg will move out of the image folder.
|
| After I have done the above, the problem still happens. The first when the
| browser loads the html, the image file is loaded. But after the login
| without typing user name and passward, the same html should be loaded again.
| but this time the image file is not loaded.
|
|
|
| "Stefan B Rusynko" wrote:
|
| > 1) rename all files to remove spaces
| > - that's what is adding the %20 to the file name "topyard 3.png" and breaking links
| > 2) some browsers don't support .png - try a .gif or .jpg
| > 3) is the image (say topyard_3.png) in one folder up (../) in the images folder both before and after you log in (the page w/
the
| > code you posted)
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | Oh Thomas, I think I have misunderstand you. Do you mean that I give you the
| > | URL of my page so that you can try? I am testing it in my local laptop.
| > | Here is the code.
| > |
| > | <html>
| > | <head>
| > | <meta http-equiv="Content-Language" content="en-us">
| > | <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
| > | <meta name="ProgId" content="FrontPage.Editor.Document">
| > | <title>TopYard Technologies Limited - ERP Systems</title>
| > | </head>
| > | <body topmargin="0" leftmargin="0">
| > | <p align="left"></a></p>
| > | <p align="left"><img border="0" src="../images/topyard%203.png" width="317"
| > | height="102"></p>
| > | <p align="left"><b><font size="5"> Welcome to TopYard Technologies Limited -
| > | ERP
| > | System !</font></b></p>
| > | <p align="left"><font size="6"><b> </b></font><b><font size="5">Please
| > | login:</font></b></p>
| > | <form method="post" action="/TopYard/ValidateUserName">
| > | <p align="left"> User Name: <input type="text" name="username"
| > | size="20" tabindex="1" maxlength="20"></p>
| > | <p align="left"> Password:
| > | <input type="password" name="password" size="20" tabindex="2"
| > | maxlength="15"></p>
| > | <p align="left">
| > | <input type="submit" value="Submit" name="submit" tabindex="3">
| > | <input type="reset" value="Reset" name="reset" tabindex="4"></p>
| > | </form>
| > | </body>
| > | </html>
| > |
| > |
| > |
| > |
| > | "Peter" wrote:
| > |
| > | > I am using Tomcat as the web server locally for testing. So the URL will be
| > | > like http://localhost:8080/YopYard/images/topyard3.png. Am I right?
| > | >
| > | >
| > | > "Thomas A. Rowe" wrote:
| > | >
| > | > > It would be the URL to the page on the internet, such http://www.yourdomainname.com/pagename.htm
| > | > >
| > | > > --
| > | > > ==============================================
| > | > > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > > WEBMASTER Resources(tm)
| > | > >
| > | > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > > ==============================================
| > | > > To assist you in getting the best answers for FrontPage support see:
| > | > > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > >
| > | > > | > | > > > Do you mean the full path? for example: c:\program files\ ... right? If I
| > | > > > misunderstand you, please give me an example of URL. Thanks
| > | > > >
| > | > > >
| > | > > > "Thomas A. Rowe" wrote:
| > | > > >
| > | > > >> Can you provide a URL to the page with this image?
| > | > > >>
| > | > > >> --
| > | > > >> ==============================================
| > | > > >> Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > > >> WEBMASTER Resources(tm)
| > | > > >>
| > | > > >> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > > >> ==============================================
| > | > > >> To assist you in getting the best answers for FrontPage support see:
| > | > > >> http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > > >>
| > | > > >> | > | > > >> > BTW, the image size is 70KB. Would that be too large to download?
| > | > > >> >
| > | > > >> > "Rick Budde" wrote:
| > | > > >> >
| > | > > >> >> The red x usually means that the image was not imported
| > | > > >> >> into your Front Page web from elsewhere on your hard
| > | > > >> >> drive. Go back and import it, relink it and try again.
| > | > > >> >>
| > | > > >> >> >-----Original Message-----
| > | > > >> >> >I am new to Frontpage and web. I use Frontpage to build
| > | > > >> >> a login page for the
| > | > > >> >> >company. On the page there are a compnay logo, userid
| > | > > >> >> and password fields.
| > | > > >> >> >The first time to browser the page is ok. When this
| > | > > >> >> page is redisplayed
| > | > > >> >> >again, the logo cannot shown. There is only a little
| > | > > >> >> red "x" at the left
| > | > > >> >> >hand coner.
| > | > > >> >> >
| > | > > >> >> >Look for advise. Many thanks.
| > | > > >> >> >.
| > | > > >> >> >
| > | > > >> >>
| > | > > >>
| > | > > >>
| > | > > >>
| > | > >
| > | > >
| > | > >
| >
| >
| >
 
As you see in my html code, it is a single form to accpet user name and
password. When I first browse this html page, I get the image and
everything. After user has entered user name and password, the html page
will post to a java servlet to validate the user name and password. If the
user name and password are invalid, the servlet will forward the request to
the same html page (same login page). After forward, the html page (login
page) displays without the image.

My confusion is, at the first initial load the image is there but the not
the second load. The html page is the same code as initial and after.

Here is my java code for forward.
String target = "/jsp/index.jsp";
RequestDispatcher dispatcher = request.getRequestDispatcher(target);
dispatcher.forward(request, response);






Stefan B Rusynko said:
Only if the 2 file are in the same relative location to the same image file and the links are identical

The image doesn't move but the other files can be in different folders and have different code

--




| I have removed the space and converted it to jpeg - topyard3.jpg. The image
| file is in images folder before and after login, I suppose. I cannot see how
| topyard3.jpg will move out of the image folder.
|
| After I have done the above, the problem still happens. The first when the
| browser loads the html, the image file is loaded. But after the login
| without typing user name and passward, the same html should be loaded again.
| but this time the image file is not loaded.
|
|
|
| "Stefan B Rusynko" wrote:
|
| > 1) rename all files to remove spaces
| > - that's what is adding the %20 to the file name "topyard 3.png" and breaking links
| > 2) some browsers don't support .png - try a .gif or .jpg
| > 3) is the image (say topyard_3.png) in one folder up (../) in the images folder both before and after you log in (the page w/
the
| > code you posted)
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | Oh Thomas, I think I have misunderstand you. Do you mean that I give you the
| > | URL of my page so that you can try? I am testing it in my local laptop.
| > | Here is the code.
| > |
| > | <html>
| > | <head>
| > | <meta http-equiv="Content-Language" content="en-us">
| > | <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
| > | <meta name="ProgId" content="FrontPage.Editor.Document">
| > | <title>TopYard Technologies Limited - ERP Systems</title>
| > | </head>
| > | <body topmargin="0" leftmargin="0">
| > | <p align="left"></a></p>
| > | <p align="left"><img border="0" src="../images/topyard%203.png" width="317"
| > | height="102"></p>
| > | <p align="left"><b><font size="5"> Welcome to TopYard Technologies Limited -
| > | ERP
| > | System !</font></b></p>
| > | <p align="left"><font size="6"><b> </b></font><b><font size="5">Please
| > | login:</font></b></p>
| > | <form method="post" action="/TopYard/ValidateUserName">
| > | <p align="left"> User Name: <input type="text" name="username"
| > | size="20" tabindex="1" maxlength="20"></p>
| > | <p align="left"> Password:
| > | <input type="password" name="password" size="20" tabindex="2"
| > | maxlength="15"></p>
| > | <p align="left">
| > | <input type="submit" value="Submit" name="submit" tabindex="3">
| > | <input type="reset" value="Reset" name="reset" tabindex="4"></p>
| > | </form>
| > | </body>
| > | </html>
| > |
| > |
| > |
| > |
| > | "Peter" wrote:
| > |
| > | > I am using Tomcat as the web server locally for testing. So the URL will be
| > | > like http://localhost:8080/YopYard/images/topyard3.png. Am I right?
| > | >
| > | >
| > | > "Thomas A. Rowe" wrote:
| > | >
| > | > > It would be the URL to the page on the internet, such http://www.yourdomainname.com/pagename.htm
| > | > >
| > | > > --
| > | > > ==============================================
| > | > > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > > WEBMASTER Resources(tm)
| > | > >
| > | > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > > ==============================================
| > | > > To assist you in getting the best answers for FrontPage support see:
| > | > > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > >
| > | > > | > | > > > Do you mean the full path? for example: c:\program files\ ... right? If I
| > | > > > misunderstand you, please give me an example of URL. Thanks
| > | > > >
| > | > > >
| > | > > > "Thomas A. Rowe" wrote:
| > | > > >
| > | > > >> Can you provide a URL to the page with this image?
| > | > > >>
| > | > > >> --
| > | > > >> ==============================================
| > | > > >> Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > > >> WEBMASTER Resources(tm)
| > | > > >>
| > | > > >> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > > >> ==============================================
| > | > > >> To assist you in getting the best answers for FrontPage support see:
| > | > > >> http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > > >>
| > | > > >> | > | > > >> > BTW, the image size is 70KB. Would that be too large to download?
| > | > > >> >
| > | > > >> > "Rick Budde" wrote:
| > | > > >> >
| > | > > >> >> The red x usually means that the image was not imported
| > | > > >> >> into your Front Page web from elsewhere on your hard
| > | > > >> >> drive. Go back and import it, relink it and try again.
| > | > > >> >>
| > | > > >> >> >-----Original Message-----
| > | > > >> >> >I am new to Frontpage and web. I use Frontpage to build
| > | > > >> >> a login page for the
| > | > > >> >> >company. On the page there are a compnay logo, userid
| > | > > >> >> and password fields.
| > | > > >> >> >The first time to browser the page is ok. When this
| > | > > >> >> page is redisplayed
| > | > > >> >> >again, the logo cannot shown. There is only a little
| > | > > >> >> red "x" at the left
| > | > > >> >> >hand coner.
| > | > > >> >> >
| > | > > >> >> >Look for advise. Many thanks.
| > | > > >> >> >.
| > | > > >> >> >
| > | > > >> >>
| > | > > >>
| > | > > >>
| > | > > >>
| > | > >
| > | > >
| > | > >
| >
| >
| >
 
Peter,

Seems like the image path is not correct when the servlet return the user back to the login page,
try using a absolute URL to the image, like http://localhost:8080/YopYard/images/topyard3.png

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Peter said:
As you see in my html code, it is a single form to accpet user name and
password. When I first browse this html page, I get the image and
everything. After user has entered user name and password, the html page
will post to a java servlet to validate the user name and password. If the
user name and password are invalid, the servlet will forward the request to
the same html page (same login page). After forward, the html page (login
page) displays without the image.

My confusion is, at the first initial load the image is there but the not
the second load. The html page is the same code as initial and after.

Here is my java code for forward.
String target = "/jsp/index.jsp";
RequestDispatcher dispatcher = request.getRequestDispatcher(target);
dispatcher.forward(request, response);






Stefan B Rusynko said:
Only if the 2 file are in the same relative location to the same image file and the links are
identical

The image doesn't move but the other files can be in different folders and have different code

--




| I have removed the space and converted it to jpeg - topyard3.jpg. The image
| file is in images folder before and after login, I suppose. I cannot see how
| topyard3.jpg will move out of the image folder.
|
| After I have done the above, the problem still happens. The first when the
| browser loads the html, the image file is loaded. But after the login
| without typing user name and passward, the same html should be loaded again.
| but this time the image file is not loaded.
|
|
|
| "Stefan B Rusynko" wrote:
|
| > 1) rename all files to remove spaces
| > - that's what is adding the %20 to the file name "topyard 3.png" and breaking links
| > 2) some browsers don't support .png - try a .gif or .jpg
| > 3) is the image (say topyard_3.png) in one folder up (../) in the images folder both before
and after you log in (the page w/
the
| > code you posted)
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | Oh Thomas, I think I have misunderstand you. Do you mean that I give you the
| > | URL of my page so that you can try? I am testing it in my local laptop.
| > | Here is the code.
| > |
| > | <html>
| > | <head>
| > | <meta http-equiv="Content-Language" content="en-us">
| > | <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
| > | <meta name="ProgId" content="FrontPage.Editor.Document">
| > | <title>TopYard Technologies Limited - ERP Systems</title>
| > | </head>
| > | <body topmargin="0" leftmargin="0">
| > | <p align="left"></a></p>
| > | <p align="left"><img border="0" src="../images/topyard%203.png" width="317"
| > | height="102"></p>
| > | <p align="left"><b><font size="5"> Welcome to TopYard Technologies Limited -
| > | ERP
| > | System !</font></b></p>
| > | <p align="left"><font size="6"><b> </b></font><b><font size="5">Please
| > | login:</font></b></p>
| > | <form method="post" action="/TopYard/ValidateUserName">
| > | <p align="left"> User Name: <input type="text" name="username"
| > | size="20" tabindex="1" maxlength="20"></p>
| > | <p align="left"> Password:
| > | <input type="password" name="password" size="20" tabindex="2"
| > | maxlength="15"></p>
| > | <p align="left">
| > | <input type="submit" value="Submit" name="submit" tabindex="3">
| > | <input type="reset" value="Reset" name="reset" tabindex="4"></p>
| > | </form>
| > | </body>
| > | </html>
| > |
| > |
| > |
| > |
| > | "Peter" wrote:
| > |
| > | > I am using Tomcat as the web server locally for testing. So the URL will be
| > | > like http://localhost:8080/YopYard/images/topyard3.png. Am I right?
| > | >
| > | >
| > | > "Thomas A. Rowe" wrote:
| > | >
| > | > > It would be the URL to the page on the internet, such
http://www.yourdomainname.com/pagename.htm
| > | > >
| > | > > --
| > | > > ==============================================
| > | > > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > > WEBMASTER Resources(tm)
| > | > >
| > | > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > > ==============================================
| > | > > To assist you in getting the best answers for FrontPage support see:
| > | > > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > >
| > | > > | > | > > > Do you mean the full path? for example: c:\program files\ ... right? If I
| > | > > > misunderstand you, please give me an example of URL. Thanks
| > | > > >
| > | > > >
| > | > > > "Thomas A. Rowe" wrote:
| > | > > >
| > | > > >> Can you provide a URL to the page with this image?
| > | > > >>
| > | > > >> --
| > | > > >> ==============================================
| > | > > >> Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > > >> WEBMASTER Resources(tm)
| > | > > >>
| > | > > >> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > > >> ==============================================
| > | > > >> To assist you in getting the best answers for FrontPage support see:
| > | > > >> http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > > >>
| > | > > >> | > | > > >> > BTW, the image size is 70KB. Would that be too large to download?
| > | > > >> >
| > | > > >> > "Rick Budde" wrote:
| > | > > >> >
| > | > > >> >> The red x usually means that the image was not imported
| > | > > >> >> into your Front Page web from elsewhere on your hard
| > | > > >> >> drive. Go back and import it, relink it and try again.
| > | > > >> >>
| > | > > >> >> >-----Original Message-----
| > | > > >> >> >I am new to Frontpage and web. I use Frontpage to build
| > | > > >> >> a login page for the
| > | > > >> >> >company. On the page there are a compnay logo, userid
| > | > > >> >> and password fields.
| > | > > >> >> >The first time to browser the page is ok. When this
| > | > > >> >> page is redisplayed
| > | > > >> >> >again, the logo cannot shown. There is only a little
| > | > > >> >> red "x" at the left
| > | > > >> >> >hand coner.
| > | > > >> >> >
| > | > > >> >> >Look for advise. Many thanks.
| > | > > >> >> >.
| > | > > >> >> >
| > | > > >> >>
| > | > > >>
| > | > > >>
| > | > > >>
| > | > >
| > | > >
| > | > >
| >
| >
| >
 
Hi Thomas,

I very appreciate your advise and support. I made changes according to your
advise. This time the image did not show up even at the initial load. Any
other idea?



Thomas A. Rowe said:
Peter,

Seems like the image path is not correct when the servlet return the user back to the login page,
try using a absolute URL to the image, like http://localhost:8080/YopYard/images/topyard3.png

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Peter said:
As you see in my html code, it is a single form to accpet user name and
password. When I first browse this html page, I get the image and
everything. After user has entered user name and password, the html page
will post to a java servlet to validate the user name and password. If the
user name and password are invalid, the servlet will forward the request to
the same html page (same login page). After forward, the html page (login
page) displays without the image.

My confusion is, at the first initial load the image is there but the not
the second load. The html page is the same code as initial and after.

Here is my java code for forward.
String target = "/jsp/index.jsp";
RequestDispatcher dispatcher = request.getRequestDispatcher(target);
dispatcher.forward(request, response);






Stefan B Rusynko said:
Only if the 2 file are in the same relative location to the same image file and the links are
identical

The image doesn't move but the other files can be in different folders and have different code

--




| I have removed the space and converted it to jpeg - topyard3.jpg. The image
| file is in images folder before and after login, I suppose. I cannot see how
| topyard3.jpg will move out of the image folder.
|
| After I have done the above, the problem still happens. The first when the
| browser loads the html, the image file is loaded. But after the login
| without typing user name and passward, the same html should be loaded again.
| but this time the image file is not loaded.
|
|
|
| "Stefan B Rusynko" wrote:
|
| > 1) rename all files to remove spaces
| > - that's what is adding the %20 to the file name "topyard 3.png" and breaking links
| > 2) some browsers don't support .png - try a .gif or .jpg
| > 3) is the image (say topyard_3.png) in one folder up (../) in the images folder both before
and after you log in (the page w/
the
| > code you posted)
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | Oh Thomas, I think I have misunderstand you. Do you mean that I give you the
| > | URL of my page so that you can try? I am testing it in my local laptop.
| > | Here is the code.
| > |
| > | <html>
| > | <head>
| > | <meta http-equiv="Content-Language" content="en-us">
| > | <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
| > | <meta name="ProgId" content="FrontPage.Editor.Document">
| > | <title>TopYard Technologies Limited - ERP Systems</title>
| > | </head>
| > | <body topmargin="0" leftmargin="0">
| > | <p align="left"></a></p>
| > | <p align="left"><img border="0" src="../images/topyard%203.png" width="317"
| > | height="102"></p>
| > | <p align="left"><b><font size="5"> Welcome to TopYard Technologies Limited -
| > | ERP
| > | System !</font></b></p>
| > | <p align="left"><font size="6"><b> </b></font><b><font size="5">Please
| > | login:</font></b></p>
| > | <form method="post" action="/TopYard/ValidateUserName">
| > | <p align="left"> User Name: <input type="text" name="username"
| > | size="20" tabindex="1" maxlength="20"></p>
| > | <p align="left"> Password:
| > | <input type="password" name="password" size="20" tabindex="2"
| > | maxlength="15"></p>
| > | <p align="left">
| > | <input type="submit" value="Submit" name="submit" tabindex="3">
| > | <input type="reset" value="Reset" name="reset" tabindex="4"></p>
| > | </form>
| > | </body>
| > | </html>
| > |
| > |
| > |
| > |
| > | "Peter" wrote:
| > |
| > | > I am using Tomcat as the web server locally for testing. So the URL will be
| > | > like http://localhost:8080/YopYard/images/topyard3.png. Am I right?
| > | >
| > | >
| > | > "Thomas A. Rowe" wrote:
| > | >
| > | > > It would be the URL to the page on the internet, such
http://www.yourdomainname.com/pagename.htm
| > | > >
| > | > > --
| > | > > ==============================================
| > | > > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > > WEBMASTER Resources(tm)
| > | > >
| > | > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > > ==============================================
| > | > > To assist you in getting the best answers for FrontPage support see:
| > | > > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > >
| > | > > | > | > > > Do you mean the full path? for example: c:\program files\ ... right? If I
| > | > > > misunderstand you, please give me an example of URL. Thanks
| > | > > >
| > | > > >
| > | > > > "Thomas A. Rowe" wrote:
| > | > > >
| > | > > >> Can you provide a URL to the page with this image?
| > | > > >>
| > | > > >> --
| > | > > >> ==============================================
| > | > > >> Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > > >> WEBMASTER Resources(tm)
| > | > > >>
| > | > > >> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > > >> ==============================================
| > | > > >> To assist you in getting the best answers for FrontPage support see:
| > | > > >> http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > > >>
| > | > > >> | > | > > >> > BTW, the image size is 70KB. Would that be too large to download?
| > | > > >> >
| > | > > >> > "Rick Budde" wrote:
| > | > > >> >
| > | > > >> >> The red x usually means that the image was not imported
| > | > > >> >> into your Front Page web from elsewhere on your hard
| > | > > >> >> drive. Go back and import it, relink it and try again.
| > | > > >> >>
| > | > > >> >> >-----Original Message-----
| > | > > >> >> >I am new to Frontpage and web. I use Frontpage to build
| > | > > >> >> a login page for the
| > | > > >> >> >company. On the page there are a compnay logo, userid
| > | > > >> >> and password fields.
| > | > > >> >> >The first time to browser the page is ok. When this
| > | > > >> >> page is redisplayed
| > | > > >> >> >again, the logo cannot shown. There is only a little
| > | > > >> >> red "x" at the left
| > | > > >> >> >hand coner.
| > | > > >> >> >
| > | > > >> >> >Look for advise. Many thanks.
| > | > > >> >> >.
| > | > > >> >> >
| > | > > >> >>
| > | > > >>
| > | > > >>
| > | > > >>
| > | > >
| > | > >
| > | > >
| >
| >
| >
 
Hi Thomas,

It is working now. Thank you very much. It was not working before because
I typed the URL wrong. In this case I have another question. It will be a
lot of trouble (work) to change all images URL in various jsp at the
deployment. Is there a easy way?



Peter said:
Hi Thomas,

I very appreciate your advise and support. I made changes according to your
advise. This time the image did not show up even at the initial load. Any
other idea?



Thomas A. Rowe said:
Peter,

Seems like the image path is not correct when the servlet return the user back to the login page,
try using a absolute URL to the image, like http://localhost:8080/YopYard/images/topyard3.png

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

Peter said:
As you see in my html code, it is a single form to accpet user name and
password. When I first browse this html page, I get the image and
everything. After user has entered user name and password, the html page
will post to a java servlet to validate the user name and password. If the
user name and password are invalid, the servlet will forward the request to
the same html page (same login page). After forward, the html page (login
page) displays without the image.

My confusion is, at the first initial load the image is there but the not
the second load. The html page is the same code as initial and after.

Here is my java code for forward.
String target = "/jsp/index.jsp";
RequestDispatcher dispatcher = request.getRequestDispatcher(target);
dispatcher.forward(request, response);






:

Only if the 2 file are in the same relative location to the same image file and the links are
identical

The image doesn't move but the other files can be in different folders and have different code

--




| I have removed the space and converted it to jpeg - topyard3.jpg. The image
| file is in images folder before and after login, I suppose. I cannot see how
| topyard3.jpg will move out of the image folder.
|
| After I have done the above, the problem still happens. The first when the
| browser loads the html, the image file is loaded. But after the login
| without typing user name and passward, the same html should be loaded again.
| but this time the image file is not loaded.
|
|
|
| "Stefan B Rusynko" wrote:
|
| > 1) rename all files to remove spaces
| > - that's what is adding the %20 to the file name "topyard 3.png" and breaking links
| > 2) some browsers don't support .png - try a .gif or .jpg
| > 3) is the image (say topyard_3.png) in one folder up (../) in the images folder both before
and after you log in (the page w/
the
| > code you posted)
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | Oh Thomas, I think I have misunderstand you. Do you mean that I give you the
| > | URL of my page so that you can try? I am testing it in my local laptop.
| > | Here is the code.
| > |
| > | <html>
| > | <head>
| > | <meta http-equiv="Content-Language" content="en-us">
| > | <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
| > | <meta name="ProgId" content="FrontPage.Editor.Document">
| > | <title>TopYard Technologies Limited - ERP Systems</title>
| > | </head>
| > | <body topmargin="0" leftmargin="0">
| > | <p align="left"></a></p>
| > | <p align="left"><img border="0" src="../images/topyard%203.png" width="317"
| > | height="102"></p>
| > | <p align="left"><b><font size="5"> Welcome to TopYard Technologies Limited -
| > | ERP
| > | System !</font></b></p>
| > | <p align="left"><font size="6"><b> </b></font><b><font size="5">Please
| > | login:</font></b></p>
| > | <form method="post" action="/TopYard/ValidateUserName">
| > | <p align="left"> User Name: <input type="text" name="username"
| > | size="20" tabindex="1" maxlength="20"></p>
| > | <p align="left"> Password:
| > | <input type="password" name="password" size="20" tabindex="2"
| > | maxlength="15"></p>
| > | <p align="left">
| > | <input type="submit" value="Submit" name="submit" tabindex="3">
| > | <input type="reset" value="Reset" name="reset" tabindex="4"></p>
| > | </form>
| > | </body>
| > | </html>
| > |
| > |
| > |
| > |
| > | "Peter" wrote:
| > |
| > | > I am using Tomcat as the web server locally for testing. So the URL will be
| > | > like http://localhost:8080/YopYard/images/topyard3.png. Am I right?
| > | >
| > | >
| > | > "Thomas A. Rowe" wrote:
| > | >
| > | > > It would be the URL to the page on the internet, such
http://www.yourdomainname.com/pagename.htm
| > | > >
| > | > > --
| > | > > ==============================================
| > | > > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > > WEBMASTER Resources(tm)
| > | > >
| > | > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > > ==============================================
| > | > > To assist you in getting the best answers for FrontPage support see:
| > | > > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > >
| > | > > | > | > > > Do you mean the full path? for example: c:\program files\ ... right? If I
| > | > > > misunderstand you, please give me an example of URL. Thanks
| > | > > >
| > | > > >
| > | > > > "Thomas A. Rowe" wrote:
| > | > > >
| > | > > >> Can you provide a URL to the page with this image?
| > | > > >>
| > | > > >> --
| > | > > >> ==============================================
| > | > > >> Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > > >> WEBMASTER Resources(tm)
| > | > > >>
| > | > > >> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > > >> ==============================================
| > | > > >> To assist you in getting the best answers for FrontPage support see:
| > | > > >> http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > > >>
| > | > > >> | > | > > >> > BTW, the image size is 70KB. Would that be too large to download?
| > | > > >> >
| > | > > >> > "Rick Budde" wrote:
| > | > > >> >
| > | > > >> >> The red x usually means that the image was not imported
| > | > > >> >> into your Front Page web from elsewhere on your hard
| > | > > >> >> drive. Go back and import it, relink it and try again.
| > | > > >> >>
| > | > > >> >> >-----Original Message-----
| > | > > >> >> >I am new to Frontpage and web. I use Frontpage to build
| > | > > >> >> a login page for the
| > | > > >> >> >company. On the page there are a compnay logo, userid
| > | > > >> >> and password fields.
| > | > > >> >> >The first time to browser the page is ok. When this
| > | > > >> >> page is redisplayed
| > | > > >> >> >again, the logo cannot shown. There is only a little
| > | > > >> >> red "x" at the left
| > | > > >> >> >hand coner.
| > | > > >> >> >
| > | > > >> >> >Look for advise. Many thanks.
| > | > > >> >> >.
| > | > > >> >> >
| > | > > >> >>
| > | > > >>
| > | > > >>
| > | > > >>
| > | > >
| > | > >
| > | > >
| >
| >
| >
 
Search and Replace.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Peter said:
Hi Thomas,

It is working now. Thank you very much. It was not working before because
I typed the URL wrong. In this case I have another question. It will be a
lot of trouble (work) to change all images URL in various jsp at the
deployment. Is there a easy way?



Peter said:
Hi Thomas,

I very appreciate your advise and support. I made changes according to your
advise. This time the image did not show up even at the initial load. Any
other idea?



Thomas A. Rowe said:
Peter,

Seems like the image path is not correct when the servlet return the user back to the login
page,
try using a absolute URL to the image, like http://localhost:8080/YopYard/images/topyard3.png

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

As you see in my html code, it is a single form to accpet user name and
password. When I first browse this html page, I get the image and
everything. After user has entered user name and password, the html page
will post to a java servlet to validate the user name and password. If the
user name and password are invalid, the servlet will forward the request to
the same html page (same login page). After forward, the html page (login
page) displays without the image.

My confusion is, at the first initial load the image is there but the not
the second load. The html page is the same code as initial and after.

Here is my java code for forward.
String target = "/jsp/index.jsp";
RequestDispatcher dispatcher = request.getRequestDispatcher(target);
dispatcher.forward(request, response);






:

Only if the 2 file are in the same relative location to the same image file and the links
are
identical

The image doesn't move but the other files can be in different folders and have different
code

--




| I have removed the space and converted it to jpeg - topyard3.jpg. The image
| file is in images folder before and after login, I suppose. I cannot see how
| topyard3.jpg will move out of the image folder.
|
| After I have done the above, the problem still happens. The first when the
| browser loads the html, the image file is loaded. But after the login
| without typing user name and passward, the same html should be loaded again.
| but this time the image file is not loaded.
|
|
|
| "Stefan B Rusynko" wrote:
|
| > 1) rename all files to remove spaces
| > - that's what is adding the %20 to the file name "topyard 3.png" and breaking links
| > 2) some browsers don't support .png - try a .gif or .jpg
| > 3) is the image (say topyard_3.png) in one folder up (../) in the images folder both
before
and after you log in (the page w/
the
| > code you posted)
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | Oh Thomas, I think I have misunderstand you. Do you mean that I give you the
| > | URL of my page so that you can try? I am testing it in my local laptop.
| > | Here is the code.
| > |
| > | <html>
| > | <head>
| > | <meta http-equiv="Content-Language" content="en-us">
| > | <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
| > | <meta name="ProgId" content="FrontPage.Editor.Document">
| > | <title>TopYard Technologies Limited - ERP Systems</title>
| > | </head>
| > | <body topmargin="0" leftmargin="0">
| > | <p align="left"></a></p>
| > | <p align="left"><img border="0" src="../images/topyard%203.png" width="317"
| > | height="102"></p>
| > | <p align="left"><b><font size="5"> Welcome to TopYard Technologies Limited -
| > | ERP
| > | System !</font></b></p>
| > | <p align="left"><font size="6"><b> </b></font><b><font size="5">Please
| > | login:</font></b></p>
| > | <form method="post" action="/TopYard/ValidateUserName">
| > | <p align="left"> User Name: <input type="text" name="username"
| > | size="20" tabindex="1" maxlength="20"></p>
| > | <p align="left"> Password:
| > | <input type="password" name="password" size="20" tabindex="2"
| > | maxlength="15"></p>
| > | <p align="left">
| > | <input type="submit" value="Submit" name="submit" tabindex="3">
| > | <input type="reset" value="Reset" name="reset" tabindex="4"></p>
| > | </form>
| > | </body>
| > | </html>
| > |
| > |
| > |
| > |
| > | "Peter" wrote:
| > |
| > | > I am using Tomcat as the web server locally for testing. So the URL will be
| > | > like http://localhost:8080/YopYard/images/topyard3.png. Am I right?
| > | >
| > | >
| > | > "Thomas A. Rowe" wrote:
| > | >
| > | > > It would be the URL to the page on the internet, such
http://www.yourdomainname.com/pagename.htm
| > | > >
| > | > > --
| > | > > ==============================================
| > | > > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > > WEBMASTER Resources(tm)
| > | > >
| > | > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > > ==============================================
| > | > > To assist you in getting the best answers for FrontPage support see:
| > | > > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > >
| > | > > | > | > > > Do you mean the full path? for example: c:\program files\ ... right? If I
| > | > > > misunderstand you, please give me an example of URL. Thanks
| > | > > >
| > | > > >
| > | > > > "Thomas A. Rowe" wrote:
| > | > > >
| > | > > >> Can you provide a URL to the page with this image?
| > | > > >>
| > | > > >> --
| > | > > >> ==============================================
| > | > > >> Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > > >> WEBMASTER Resources(tm)
| > | > > >>
| > | > > >> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
| > | > > >> ==============================================
| > | > > >> To assist you in getting the best answers for FrontPage support see:
| > | > > >> http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > > >>
| > | > > >> | > | > > >> > BTW, the image size is 70KB. Would that be too large to download?
| > | > > >> >
| > | > > >> > "Rick Budde" wrote:
| > | > > >> >
| > | > > >> >> The red x usually means that the image was not imported
| > | > > >> >> into your Front Page web from elsewhere on your hard
| > | > > >> >> drive. Go back and import it, relink it and try again.
| > | > > >> >>
| > | > > >> >> >-----Original Message-----
| > | > > >> >> >I am new to Frontpage and web. I use Frontpage to build
| > | > > >> >> a login page for the
| > | > > >> >> >company. On the page there are a compnay logo, userid
| > | > > >> >> and password fields.
| > | > > >> >> >The first time to browser the page is ok. When this
| > | > > >> >> page is redisplayed
| > | > > >> >> >again, the logo cannot shown. There is only a little
| > | > > >> >> red "x" at the left
| > | > > >> >> >hand coner.
| > | > > >> >> >
| > | > > >> >> >Look for advise. Many thanks.
| > | > > >> >> >.
| > | > > >> >> >
| > | > > >> >>
| > | > > >>
| > | > > >>
| > | > > >>
| > | > >
| > | > >
| > | > >
| >
| >
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top