Hi Paul,

Specifically, the code looks something like this:

CSpString userID;

try
{
        userID = (CSpString) CSpider.getWebVar("userid")
}
catch (NullPointerException ex)
{
        //Error handling for invalid/incomplete user profile
}


Hope that helps,
Anisha

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~                  Anisha Vaswani @ Hewlett-Packard Company           ~
~    Semiconductor Products Group IT - WW Sales & Marketing Systems   ~
~         Email: [EMAIL PROTECTED] | Vmail: (408) 970-2242        ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 


-----Original Message-----
From: Curt Springer [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 27, 1999 2:45 PM
To: [EMAIL PROTECTED]
Cc: nd4
Subject: Re: [ND] Using getWebVar for retrieving name/value pairs from
URL.


At 05:28 PM 9/27/99 -0400, Paul Gentile wrote:

>Has anyone used getWebVar for retrieving name-value pairs from a URL? I
have
>an application whose initial page does some code in the onBeforeLoadEvent.
>This code is trying to retrieve a name-value pair from the URL that was
used
>to launch the application.
>
>For example, say the browser launched the NetD application with this URL:
>
>http://www.somewhere.com:80/Scripts/ndISAPI.dll/someproject/pgMain?userid=J
i
>mB
>
>Is it possible to use getWebVar to retrieve the value associated with
>"userid"?
>
>Does anyone know a way to see the available web variables?

getWebVars (I think it is one of those static CSpider things) will give you 
everything that is available.

-- Curt Springer, Team ND



>Thanks,
>Paul Gentile
>_______________________________________________________
>Cardinal Group International, Inc.     508 620 9119x170
>495 Old Connecticut Path            [EMAIL PROTECTED]
>Framingham, MA 01701              www.cardinalgroup.com
>
>
>_________________________________________________________________________
>
>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]
_________________________________________________________________________

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