I have a Project that uses http for certain pages and https for other ones.

For testing purposes I developed a Project HTTPS (see attachment) with the following 
pages:

� PgA – unprotected that calls a protected page B using a customized button.
�  pgB – a protected page that calls back page A using also a customized button.
�  PgErrorNonSecure – For messaging error purposes.

�  For pg A at the page-level onafterinit event I set up:

public int this_onAfterInitEvent(CSpInitEvent event)
{
  CSpButton Action = (CSpButton) getDisplayField("Button1");
  String St_URL = https://SERVER/scripts/nd_ISAPI_50.dll/Https/pgB";
  Action.setActionType(CSpCommand.GO_TO_EXTERNAL_URL_ACTION_TYPE);
  Action.setSendSessionToExternalURL (true);
  try
  {
    Action.setExternalURL(new URL(St_URL));
  }
  catch (Exception ex)
  {
   CSpLog.send(this,CSpLog.ERROR,"onbtnHelpWebEvent  " + ex);
  }
  return (PROCEED);
}

�  For pg B at the page-level onBeforeLoadEvent I do a check the port to get the page:

public int this_onBeforeLoadEvent(CSpPageEvent event)
{
  int iPortNumber;
  iPortNumber = CSpider.getWebEnvVar(CSpVars.SERVER_PORT).intValue();
  if (iPortNumber != 443)
  {
    load("PgErrorNonSecure");
    return(STOP); 
  }
  return (PROCEED);
}  

Testing my Project starting at page A, the browser presents pg A with the following 
Message:

Software Messages :
HTTPS.pgA.onbtnHelpWebEvent  java.net.MalformedURLException: unknown protocol: https


If I submit manually through the browser 
https://server/SCRIPTS/nd_ISAPI_50.dll/HTTPS/pgB

NetDynamics opens normally page B.

I think the problem is that the java.net.URL class does not support the https 
protocol. 

If you have a work-around or solution would you please let me know.

Thanks in advance for your help.

Jose

Https.zip

_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.

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