Aby,

You are right. This code I had copied over from ND tutorial quite some time
back without giving it much thought(i.e., not questioning ND's judgement).
Well it has come back to haunt me :-)

Thanks

-Nimmi 

-----Original Message-----
From: Mathew, Aby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 27, 1999 3:50 PM
To: 'Shamdasani Nimmi-ANS004';
[EMAIL PROTECTED]
Subject: Re: [ND] No cache for pages on the server.


Nimmi,

I don't think the problem has anything to do with caching.

There has been a lot of discussion about PageSessionObjects and their
correct and incorrect usage in this forum. This looks just another example
of their improper use.

To summarise:

If you want to pass something from Page1 to Page2 within the same web event
sequence, just set an instance variable of Page2 or UserSessionObject.
PageSessionObject is just NOT the thing for this. 

What one can safely say about PSO is that it gets stuffed in the
SPIDERSESSION value of the page so that when the page is submitted later you
can get it back. 

In your code, I guess >>>nextPage.load(false)<<< will look at the last
SPIDERSESSION value that was submitted last and ignore what was done in:
        >>> nextPage.putPageSessionObject("NEXTPAGE",new
CSpString("Page1"));<<<


Aby
                        

> -----Original Message-----
> From: Shamdasani Nimmi-ANS004 [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 27, 1999 4:25 PM
> To:   'Curt Springer';
> [EMAIL PROTECTED]
> Subject:      Re: [ND] No cache for pages on the server.
> 
> I have a button on page 1 which sends me to page 2. In the web event of
> the
> button I set a pagesession object on page 2 to store the page name where
> page 2 got called from.
> 
> The problem I am facing is that whenever I come back to page2 its showing
> the previously entered values.
> 
> I was hoping there was a way to have no-cache on the page to prevent this
> problem.
> 
> If I Use load(true) wouldn't it clear up the pagesession object too?
> 
>       public int btnAddElement_onWebEvent(CSpWebEvent event)
>       {
>               CSpPage nextPage = CSpider.getPage("Page2");
>               
>               nextPage.putPageSessionObject("NEXTPAGE",new
> CSpString("Page1"));
>               
>               nextPage.load(false);
>               
>               return(STOP);
>       }
> -----Original Message-----
> From: Curt Springer [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 27, 1999 3:01 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [ND] No cache for pages on the server.
> 
> 
> At 02:19 PM 5/27/99 -0500, Shamdasani Nimmi-ANS004 wrote:
> >Hi,
> >
> >Putting
> >
> ><META HTTP-EQUIV="Pragma" CONTENT="no-cache">
> >
> >prevents page caching only for the browser. Is there a way to set
> no-cache
> >on a page on the server?
> >
> >Also is there any method to clear all display fields on a page instead of
> >clearing them individually?
> 
> -----setClearBeforeDisplay(true) or Load(true) will cause the fields to be
> cleared first when the page is next displayed.
> 
> -- Curt Springer, Team ND
> 
> >
> >
> >-Nimmi
> >
> >_________________________________________________________________________
> >
> >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]
_________________________________________________________________________

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