cancel
Showing results for 
Search instead for 
Did you mean: 

How to make WebContextAdapter as Null

Former Member
0 Kudos

String Name = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("firstName");

String Name2 = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("lastName");

Hi

After passing the parameters above i want to make make the Adapter

to null again.

What are the possible ways for that, plz reply asap.

regards

jalandhar

Accepted Solutions (1)

Accepted Solutions (1)

Abhinav_Sharma
Contributor
0 Kudos

Hi,

Do you want to make the Adapter null? You can then use following code:

IWDWebContextAdapter adapter = WDWebContextAdapter.getWebContextAdapter();

String Name = adapter.getRequestParameter("firstName");

String Name2 = adapter.getRequestParameter("lastName");

adapter = null;

This may solve ur problem.

Abhinav Sharma

Answers (3)

Answers (3)

Former Member
0 Kudos

I am navigating through my application based on the contents of the adapter.. But once the WDWEBCONTEXTADAPTER is set, even if i carry out the statement

IWDWebContextAdapter adapter = WDWebContextAdapter.getWebContextAdapter();

adapter.getRequestParameter("Name1");

adapter = null;

It returns the same value previously set by the previous portal navigation which i wont require..

Thats the reason i need to make the initial WDWebContextAdapter.getWebContextAdapter() go null and hence return me no value the second time its being checked..

Former Member
0 Kudos

I am navigating through my application based on the contents of the adapter.. But once the WDWEBCONTEXTADAPTER is set, even if i carry out the statement

IWDWebContextAdapter adapter = WDWebContextAdapter.getWebContextAdapter();

adapter.getRequestParameter("Name1");

adapter = null;

It returns the same value previously set by the previous portal navigation which i wont require..

Thats the reason i need to make the initial WDWebContextAdapter.getWebContextAdapter() go null and hence return me no value the second time its being checked..

former_member182372
Active Contributor
0 Kudos

For what reason? What are you trying to achieve?

> After passing the parameters above i want to

> make make the Adapter to null again.