Skip to Content
avatar image
Former Member

HttpServletRequest - In netweaver7

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jun 22, 2008 at 07:20 PM

    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.html

    Blog:

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

    Thread:

    Access current portal session through webdynpro

    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

    Add comment
    10|10000 characters needed characters exceeded