cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to pass data to a JSP

Former Member
0 Kudos

Hi all,

I am trying to pass data from my iView to a JSP which is opened as popup. The JSP is not in pagelet but in the dist folder. I tried several ways (e.g. servletRequest.setAttribute or httpSession.putValue) but had no success. Anytime I want to read the values from within the JSP they are null.

The data I want to pass is rather long (a complete HTML page), so GET is not suitable.

Any ideas?

Kind regards

Francisco

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

In the 1st page :

session.setAttribute("myVar",myVarValue);

In the popup :

String myVar=(String) session.getAttribute("myVar");

If myVarValue is your data, you will have it in myVar inn your popup. You can do that with other object type.

Former Member
0 Kudos

Hi Olivier,

thanks a lot - it works.

Kind regards

Francisco

Answers (0)