cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass values from a JSP Application to a portal iView?

Former Member
0 Kudos

Hello,

I need some help for implementig a functionality in SAP Portal.

This is the big picture:

I have a WebDynpro Application which needs to open an external jsp application, that external application makes some calculations and then the jsp application needs to return some values to my WebDynpro Application, but my application is embedded in a portal role and I can't send the values via URL parameters directly.

I found that one possible solution is implementing a redirect page where I need to pass the values of the JSP Application to one web dynpro application via url parameters and then tha wd application needs to send the parameters to my wd iview embeded in my portal role. using the WDPortalNavigation.navigateAbsolute, but it doesn't works.

Can somebody help me?

I'm using web dynpro and sap portal 7.3

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Did you try sending the params to the WD app using Post method instead of Get method from your jsp application.

Alternatively, as you've already tried the approach of redirecting your jsp application to a standalone WD application and eventually to your WD application embedded within Portal as an Iview, I would suggest you to read the values coming from jsp in your standalone WD app through Url and then set the values to a session variable and later on you can retrieve the session variable in your second WD app embedded within Portal.

You may refer to the below code for this purpose:

Setting in session.

WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, "Key", value);

Getting the Value from session:

WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, "Key");

Regards,

Anurag

Former Member
0 Kudos

Hi Anurag,

In my particular case, my JSP Application act like a black box. From my Web Dynpro App embedded in the portal I can open the JSP app and in the same url has a concatenated url which act as redirect page for returning the values to my wd app, but as I can't send the values directly to my wd app I made an auxiliar wd app which receives the values via url; then the issue that I have now is how to pass this values from my redirectwdview to my wdview enbedded in a portal role, whitout lose my data setted at the beggining?

It's something like that:

Portal(wdIView -set some values-)  -- open JSP App (urljsp + urlredirectWD) --> JSP APP make some calculations -- return values (urlredirectWD?value1=1&value2=2) --> redirectWD receive the values -- redirectWD send values to Portal(wdIView without lose initial values).

I've seen that I can use the WDPortalNavigation.navigateAbsolute for sendings the values between redirectWD an Portal(wdIView) , but it doesn't works. I found that it works only if both views are inside of portal.

Related to session variables in my redirectWD I have to set the values in session using WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, "Key", value);  and in my wdIview embedden in portal I have to get that values whit WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, "Key");, but, in wich moment or event I have to call the WDScopeUtil.get?

Regards,

Blanca

Former Member
0 Kudos

Hi Anurag,

Thanks a lot for the information. After of a huge research about how to solve the problem, your solution was the best.

Using your information I implement the following solution:

I made an implementation using the timedTrigger element. When I open the JSP application I declare a session variable as a flag which will allow me to stop the timedTrigger. When the JSP application return the values my Dynpro application receives the values and stops the timedTrigger and when the timedTrigger is stopped I read the values from the session variables.

Thank you.

Blanca Ruelas

Answers (0)