if the nd app server and the web server are 
on the same machine you should be able to
provide the entire url - 
http://www.domain.com/docs/directory/homepage.htm

if this is not the case, perhaps you could
load a "BlankPage" and stream out the html
file you want to display.

import java.io.*;

in onBeforeDisplayEvent:

File file = new File("/directory/homepage.htm");
FileReader filereader = new FileReader(file);
BufferedReader bufferedreader = new BufferedReader(filereader);

StringBuffer stringbuffer = new StringBuffer();

String tempstring = bufferedreader.readLine();

while (tempstring != null)
{
   stringbuffer.append(tempstring);
   tempstring = bufferedreader.readLine();
}

bufferedreader.close();
filereader.close();
file = null;

spider.html.CSpHtml.write(stringbuffer.toString());

return (SKIP);

"Hardy Wang" <[EMAIL PROTECTED]> wrote:
>
>in ND4, there is a HREF type called "External URL", but it only can be an absolute
         address, such as "http://www.domain.com/page.htm". I need to make a link 
pointing
         to some static pages located on the same server of ND4, so I write 
"/directory/homepage.htm".
         but after running, it reports: "spider.visual.CSpHref.parseExternalURL: 
Invalid External
         URL : '/directory/homepage.htm'". is there a way out?

_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to