cancel
Showing results for 
Search instead for 
Did you mean: 

HttpServletRequest - In netweaver7

former_member413959
Participant
0 Kudos

Hi,

In the old version i used:

HttpServletRequest req = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();

req.setAttribute(ILoginConstants.LOGON_UID_ALIAS,"X")

I know that i need to use in the new version:

IWDProtocolAdapter adapter=WDProtocolAdapter.getProtocolAdapter();

but how i implement the "set" method ?

Regards,

F.F

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182374
Active Contributor
0 Kudos

Hi F.F,

I owe you an answer from Thursday (-:

IWDProtocalAdapter can be used for getting parameters from iview.

You can use WDScopeUtil class for setting & getting String parameters (It's a "limited" session object - only for Strings).

Javadoc:

https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/services/session/api/WDScopeUtil...

Blog:

/people/william.cui/blog/2007/02/12/sharing-session-context-between-parent-and-external-windows-running-on-same-host

Thread:

Regarding the "Logon by code" issue:

You can always use a simple portal component (JSP) like in the following example:

/thread/26477 [original link is broken]

and redirect to your web dynpro (or run the WD and JSP in the same page and running the JSP only when loading the page for the first time).

Hope it helps,

Omri