Something obviously wrong with your code, unless it is a typo crept into the
posting, is the comma immediately preceding ? . This comma is certain to
confuse the browser and others involved.
../Openexe/BlankPage1.Href1_onWebEvent(" + name +
"),?ROW_INDEX=" + currIndex + ">" + nextLine + "</A>";
--*--------------------------------------------------
Moreover, assuming you are overriding the html tag entirely, you may want to
pass the SPIDERSESSION as well. So you may have to do some more work.
Aby
TeamND
> -----Original Message-----
> From: Jan Robison [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 22, 2000 2:55 PM
> To: [EMAIL PROTECTED]
> Subject: [ND] Null Pointer Exception when using getWebVar()
>
>
>
> I have an href in a repeated. I need to know which href the
> user clicked.
>
> This is my code for creating the html text in the
> onBeforeDisplayEvent of the repeated.
> I am creating an environment variable in the href to keep
> track of the index.
>
> String myHrf = "<A HREF=
> ../Openexe/BlankPage1.Href1_onWebEvent(" + name +"),
> ?ROW_INDEX=" + currIndex + ">" + nextLine + "</A>";
>
> (name - is the name of the href
> currindex - is the current index updated in code
> nextline - is the line I want displayed for that href)
>
> then in the Href1_onWebEvent I have this code
>
> try
> {
> int i = CSpider.getWebVar("ROW_INDEX").intValue();
> }
> catch (NullPointerException ex)
> {
> CSpLog.exception(this, "readObject", ex);
> }
>
> I keep getting a null pointer exception.
> Does anyone know what I am doing wrong?
>
> Thanks
> Jan
>
> ______________________________________________________________
> ___________
> 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]
>
_________________________________________________________________________
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]