hi
  I asume this is the problem.
some clarifications first.
1. When the time out code is checked ( it is obviously a code in the program
or a Include file) next
the condition would be something like

  if( session timed out)
        REDIRECT OR INCLUDE
else
    continue processing.

reson what I feel could be
U are currently in the Customer sub Directory when U time out.
when U include the login program U have coded the IMG tags as images/xyz.gif
so it may try to look for the images in the CUSTOMER directory which it may
not find.

some more Question I dont understand how ur code from images/xyz.gif can
change to customer/images/xyz.gif unless U use some code some server side
code preceeding it.

By experience I use something called as RELPATH where in in each program I
set something called as RELAPTH = "../../" where this variable specifies how
much relative is it to the root directory so say I am in the 3rd level and
my LOGIN PROGRAM is in the 1st level.
All my links/images etc etc in the login program are coded with respect to
itself and then before every one of this Hyperlink and image I preceed
RELPATH so where ever I may be and under what ever sublevel I just set it
once in my program  what is the RELPATH and all goes well.

Try using this it help
Need any more clarification mail in
bye


----- Original Message -----
From: Victor Marinelli <[EMAIL PROTECTED]>
To: JRun-Talk <[EMAIL PROTECTED]>
Sent: Friday, May 18, 2001 2:34 PM
Subject: broken image links


>
> Hello,
>
>    I discovered a problem I am having with images. First, to give some
> background, I am using JRun 3.0 and Apache 1.3.14 on Solaris. I have a web
> app that is using form based validation as opposed to basic. The reason I
> went with form validation was so I could incorporate graphics and
basically
> make the login screen look nice. All images are physically located in an
> "images" subdirectory and the <img src> uses a relative path. The actual
> login and login error forms are located in the root directory of my
web-app.
> I also have several other subdirectories in my web-app defined such as
> "customers" and "administration". They contain various JSP files.
>
> Here is the problem:
>
>     1) A user logs in and brings up a page in their browser. The file is
> physically located in "customers" subdirectory.
>     2) The session times out.
>     3) The user goes to access another file located under customers
unaware
> that the session timed out.
>     4) Jrun redirects the user back to the login screen. (Which is what it
> is supposed to do)
>     5) The login screen appears, but all images are broken links.
>
> When I viewed the HTML source in the browser, I noticed that JRun appends
> all of my <img src> tags with the subdirectory "customers".
> Another words, all images in the login form were originally coded as such:
>
> <img src="images/logo.gif">
>
> and in this scenario, JRun changes them to this:
>
> <img src="customers/images/logo.gif">
>
> This obviously results in a broken link.
>
>
>
> Can someone offer any guidance with this?
>
> Any help would be greatly appreciated.
>
> Vic
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to