Skip to Content
0
Former Member
Apr 30, 2008 at 02:03 PM

Exchange data between JSPDynpage and foreign WebDynpro app

14 Views

Hello Experts,

I am currently developing some portal iViews containing JSPDynpages running on an Netweaver Portal 2004.

Now I have to provide some data, e.g. a string, for a foreign WebDynpro application running inside the same portal.

Suggestion was to put this string in the HttpSession in my iView which can be accessed from the WebDynpro as I am logged in with the same user and session.

But in the WebDynpro the data is not visible in the HttpSession.

Code from the JSPDynPage iView:

HttpSession hSession =
   this.myRequest.getComponentSession().getHttpSession();
hSession.setAttribute("selectedProduct", "123");

Access from WebDynpro seems to be, but it is not my code:

HttpServletRequest request = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
HttpSession session = request.getSession();
String myValue = session.getAttribute("ATTRIBUTE NAME");

But I am definitely responsible for realizing this 😔

Question is now how to realize this data exchange???

I would appreciate any hints for solving my problem.

Thanks in advice.

Regards,

Andreas