HighDots Forums  

Drive dilemma

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Drive dilemma in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Monica
 
Posts: n/a

Default Drive dilemma - 06-25-2007 , 02:12 PM






Here is my situation: I have a .war file that calls an index.html file
from a shared directory. That works great, but unfortunately the c:
drive on my server is running low on space, so the server admin wants
my shared directories to be moved to the d: drive. I have modified the
index.html file on the c: drive being accessed by my .war file to load
another index.html file on the d: drive, but it is not working. I have
tried

<BODY onLoad="document.location.href='d:\index.html'">

and

<SCRIPT LANGUAGE="JavaScript"><!--
function go_now () {
location.href = "D:/index.html";
}//-->
</SCRIPT></HEAD>
<BODY onLoad="go_now ()">

Any ideas? Thanks!


Reply With Quote
  #2  
Old   
Dan
 
Posts: n/a

Default Re: Drive dilemma - 06-25-2007 , 04:40 PM






On Jun 25, 2:12 pm, Monica <monica.rigg... (AT) coats (DOT) com> wrote:
Quote:
BODY onLoad="document.location.href='d:\index.html'"

location.href = "D:/index.html";}//--
Well, you can't seem to make up your mind whether to use backslashes
or forward slashes (in URLs, forward slashes are always the correct
thing to use for indicating directory paths, regardless of what the
local operating system may happen to use), but neither version as you
use it is a proper URL. If this is intended to be used on your local
machine (rather than through the Web), then you need to find the
proper formulation of the path to your other drive as a "file:" URL,
like "file:///D:/index.html" (this might depend on how your system is
set up). You might find that, depending on what browser you're using
and how it's configured there may be security settings that prevent
such access.

If it's on the Web, you need to know how the server is set up to serve
one or both of these drives within a hostname or IP address under HTTP
URLs.

--
Dan



Reply With Quote
  #3  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Drive dilemma - 06-25-2007 , 07:40 PM



On Mon, 25 Jun 2007 18:12:43 -0000, Monica <monica.riggins (AT) coats (DOT) com>
wrote:

Quote:
Here is my situation: I have a .war file that calls an index.html file
from a shared directory.
If you can work a .war file, you can work a web server. Use http://
protocol in your URLs, not file:// and never let a drive letter be any
part of it.

And why do you need a war file anyway? If you're not deploying it to a
servlet container (i.e. a web server + java) then why can't you just use
a .jar fiel to containa command-line app?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.