Hi!
That's right, java URL class requires a fulle qualified URL. There are
several way you can accomplish this task:
1. Try and obtain values for we server environment vars, such as
SERVER_PROTOCOL, SCRIPT_PATH (you can look at them in NetDyn Vars class) and
construct a URL object.
2. Write HTTP location directive to the browser, it should do the same
thing. Create something like this:
private void doHttpRedirect(String what)
{
String whereTo = "Location: "+what+"\n\n";
CSpHttp.reset();
CSpHttp.setHttpStatus(302);
CSpider.getOutputStream().write(whereTo);
}
Call this method on your page and return STOP;
HTH
Boris
> -----Original Message-----
> From: Hardy Wang [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, July 01, 1999 11:50 PM
> To: [EMAIL PROTECTED]
> Subject: [ND] Link to external URL problem
>
>
> 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]
_________________________________________________________________________
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]