use getPageSessionNVP instead of CSpider.getWebVar("SPIDERSESSION")

-- Curt Springer, Team ND

At 08:54 AM 5/28/99 +0530, Nagendra B wrote:
>Hi,
>
>Description:
>
>I am forming a page "paMetricTable" which will have a TABLE and first column
>of each row will have HREF.
>After clicking on HREFs "pgCrOrEdMetric" will be loaded
>
>Could any body help me in figuring out why the below given code is failing
>in ND-4.0. When I saw the HTML
>file that the browser displayed the href value was
>"../ppi/pgMetricTable.onHrefMetricIdWebEvent(HrefMetricId[0])?HrefMetricId[0
>]=003&SPIDERSESSION=%5bK%28SPIDERSESSION%2c+%5epgMnuInitial%2enumOfRows%2epp
>i%2c+%5epgInitial%2enumOfRows%2eppi%29%2c+E%28%283%2c%2d1svs2skpg2qk9%29%2c+
>1%2c+1%29%5d&ROW=0"
>
>So , I guess, the session information was not being carried out.
>But this piece of code works perfectly well with 3.11.
>
>Here is the piece of code:
>
>// "pgMetricTable.java"
>
>public int this_onBeforeDisplayEvent(CSpDisplayEvent event)
>{
>   ................
>   // forming a table first column of each row will have HREF...
>   _htmlText += ("<A HREF=
>\"../ppi/pgMetricTable.onHrefMetricIdWebEvent(HrefMetricId)?HrefMetricId[" +
>i + "]=" + (new CSpArgument (_resultTable.getRowData (i,
>0).toString()).toHttpString()) + "&SPIDERSESSION=" + (new
>CSpArgument(CSpider.getWebVar
>("SPIDERSESSION").stringValue()).toHttpString())+ "&ROW=" + i + "\">" +
>_resultTable.getRowData (i,0).toString() +  "</A>");
>   ...................
>}
>
>public int hdTable_onBeforeHtmlOutputEvent(CSpHtmlOutputEvent event)
>{
>   CSpHidden _hd = (CSpHidden) event.getSource();
>   _hd.setHtmlText (_htmlText) ;
>   return (PROCEED);
>}
>
>// This function is used to load the "pgCrOrEdMetric" page when clicked on
>the Metric Id Href
>public int onHrefMetricIdWebEvent( String args[] )
>{
>   CSpider.putUserSessionObject("MetricId_Details",
>CSpider.getWebVar("HrefMetricId[" + CSpider.getWebVar("ROW") + "]"));
>   return(load("pgCrOrEdMetric"));
>}
>
>When I click on the HREF ,I am getting the following log Messages
>
>1      May 27, 1999 at 15:25:13.969    Error   178     ndCGI
>CNdServiceProxy:1:getNewWorker exception:cosi::stubs::CNdSecurityException:9
>87"LogServiceWorker.INdLogWorker.log Client ticket
>CGI||927799419298|1204385023 timed out"
>:IDL:cosi/stubs/CNdSecurityException:1.0
>2      May 27, 1999 at 15:25:13.959    Error   178     ndCGI   CNdWebHit:1:run
>exception:CORBA::NO_RESOURCES:8 1 :IDL:omg.org/CORBA/NO_RESOURCES:1.0
>
>
>
>_________________________________________________________________________
>
>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